Skip to content

Commit 6bb9a92

Browse files
committed
Update
1 parent 521b6eb commit 6bb9a92

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Checks
1+
name: Rust CI
22

33
env:
44
CACHE_VERSION: 0
@@ -10,51 +10,60 @@ env:
1010

1111
on:
1212
push:
13-
branches:
14-
- main
13+
branches: [main]
1514
pull_request:
16-
branches:
17-
- main
15+
branches: [main]
1816
merge_group:
1917

2018
jobs:
2119
cargo-checks:
2220
name: Task cargo ${{ matrix.action }}
2321
runs-on: ubuntu-latest
22+
2423
strategy:
2524
matrix:
2625
action: [clippy, fmt, nextest]
26+
2727
steps:
2828
- name: Fetch latest code
2929
uses: actions/checkout@v4
30+
3031
- name: Setup build environment
3132
if: matrix.action != 'fmt'
3233
run: rustup show
33-
- uses: Swatinem/rust-cache@v2
34+
35+
- name: Cache cargo target
3436
if: matrix.action != 'fmt'
37+
uses: Swatinem/rust-cache@v2
3538
with:
3639
prefix-key: ${{ env.CACHE_VERSION }}
3740
key: ${{ matrix.action }}
41+
3842
- name: Cargo clippy
3943
if: matrix.action == 'clippy'
4044
uses: giraffate/clippy-action@v1
4145
with:
4246
clippy_flags: --workspace --all-features --all-targets --locked
47+
4348
- name: Cargo fmt
4449
if: matrix.action == 'fmt'
4550
run: |
4651
rustup toolchain install nightly
4752
rustup component add rustfmt --toolchain nightly
4853
cargo +nightly fmt --all -- --check
54+
4955
- name: Install cargo-nextest
5056
if: matrix.action == 'nextest'
5157
uses: taiki-e/install-action@nextest
58+
5259
- name: Cargo nextest
5360
if: matrix.action == 'nextest'
54-
run: cargo nextest run --cargo-profile ci-dev --workspace --all-features --all-targets --locked
61+
run: |
62+
cargo nextest run --no-tests=pass --cargo-profile ci-dev --workspace --all-features --all-targets --locked
63+
5564
- name: Fast fail
56-
uses: vishnudxb/cancel-workflow@v1.2
5765
if: failure()
66+
uses: vishnudxb/cancel-workflow@v1.2
5867
with:
5968
repo: hack-ink/<NAME>
6069
workflow_id: ${{ github.run_id }}

0 commit comments

Comments
 (0)