Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CI for pull requests #48

Merged
merged 4 commits into from
Feb 8, 2021
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