diff options
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r-- | .github/workflows/rust.yml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 582bdcb..9fe45a3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,13 +20,13 @@ jobs: - nightly steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: ${{ matrix.rust }} override: true - components: clippy + components: rustfmt, clippy + - uses: actions-rs/cargo@v1 with: command: build @@ -36,17 +36,11 @@ jobs: command: test args: --features all --verbose - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --features all -- -D warnings - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt - - uses: actions-rs/cargo@v1 + if: ${{ matrix.rust == 'nightly' }} with: command: fmt args: --verbose --all -- --check + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --features all -- -D warnings |