Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Test

on:
push:
branches: master
pull_request:
schedule:
- cron: '21 3 ? * 6'

Expand All @@ -21,16 +23,19 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ matrix.rust }}
# Only install the components on stable (might not be available on nightly).
components: rustfmt, clippy
- if: matrix.rust != 'stable'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ matrix.rust }}
# Just check compilations on platforms other than stable.
- run: |
# Note that we have to explicitly exclude stable, because `cargo clippy`
# after `cargo check` does not work properly: https://github.com/rust-lang/rust-clippy/issues/4612
- if: matrix.rust == 'stable'
run: |
cargo check --all --manifest-path ./Cargo.toml
# Only run the stable versions of Clippy and rustfmt.
- if: matrix.rust == 'stable'
Expand Down