diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-09-25 16:16:05 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-09-25 16:44:06 -0400 |
commit | 602bfb7cdd9e25a4447db6de7be90e973a88d93a (patch) | |
tree | 6b0b6928361a72f8f6149badd11823915bc2a1d6 /.github/workflows | |
parent | 7487f607e64a3e5149a84c258c6e102354e8ba14 (diff) |
use nightly fmt
Diffstat (limited to '.github/workflows')
-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 |