diff options
author | Tom Forbes <tom@tomforb.es> | 2023-03-10 11:46:13 +0000 |
---|---|---|
committer | Tom Forbes <tom@tomforb.es> | 2023-03-10 11:46:58 +0000 |
commit | 7e4300eb056637e05b43a4ebfa22f5030994724e (patch) | |
tree | cfb8aaf90ecd637ec3259b44490ffdad7828d177 | |
parent | c20e4d0c0a7ee11d0ac6d02a4cd039e5548ba3a1 (diff) |
Combine CI check steps
-rw-r--r-- | .github/workflows/test.yml | 50 |
1 files changed, 14 insertions, 36 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b374eb5..4872d42 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -172,59 +172,37 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - check: - name: Check + checks: + name: Checks runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable override: true + components: rustfmt, clippy - - name: Run cargo check + - name: Run cargo fmt uses: actions-rs/cargo@v1 + if: success() || failure() with: - command: check - - clippy: - name: Clippy - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v3 + command: fmt + args: --all -- --check - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + - name: Run cargo check + uses: actions-rs/cargo@v1 + if: success() || failure() with: - toolchain: stable - override: true - components: clippy + command: check - uses: actions-rs/clippy-check@v1 + if: success() || failure() with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: rustfmt - - - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check |