Skip to content

Commit

Permalink
Merge pull request #48 from TimNN/ci-pull
Browse files Browse the repository at this point in the history
Enable CI for pull requests
  • Loading branch information
TimNN authored Feb 8, 2021
2 parents b3ecbf9 + 6cc7d5d commit 7aff975
Showing 1 changed file with 8 additions and 3 deletions.
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

0 comments on commit 7aff975

Please sign in to comment.