517: Make nightly CI run every week r=Kerollmops a=curquiza



Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
This commit is contained in:
bors[bot] 2022-04-26 16:22:25 +00:00 committed by GitHub
commit 2aae19dc52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 11 deletions

View File

@ -1,31 +1,38 @@
name: Rust
on:
schedule:
- cron: '0 5 * * MON' # Every Monday at 5:00am
push:
branches: [ staging, trying ]
branches: [ staging, trying ] # For Bors
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
name: Tests on ${{ matrix.os }} with ${{ matrix.rust }}
name: Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-latest, windows-latest]
rust:
- stable
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: Run test with Rust nightly
if: github.event_name == 'schedule'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: nightly
override: true
- name: Run test with Rust stable
if: github.event_name != 'schedule'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@v1.3.0

View File

@ -1,7 +1,7 @@
status = [
'Tests on ubuntu-18.04 with stable',
'Tests on macos-latest with stable',
'Tests on windows-latest with stable',
'Tests on ubuntu-18.04',
'Tests on macos-latest',
'Tests on windows-latest',
'Run Rustfmt',
]
# 3 hours timeout