File tree Expand file tree Collapse file tree 1 file changed +31
-7
lines changed
Expand file tree Collapse file tree 1 file changed +31
-7
lines changed Original file line number Diff line number Diff line change 1010permissions :
1111 contents : read
1212
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+ cancel-in-progress : true
16+
1317jobs :
1418 test :
1519 runs-on : ${{ matrix.os }}
@@ -22,20 +26,40 @@ jobs:
2226 shell : bash
2327
2428 steps :
25- - uses : actions/checkout@v4
29+ - uses : actions/checkout@v6
2630
27- - name : Setup Rust
28- uses : actions-rs/toolchain@v1
31+ - name : Setup Rust toolchain
32+ uses : dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561
33+ id : rust-toolchain
2934 with :
30- toolchain : stable
31- profile : minimal
32- override : true
35+ toolchain : ${{ matrix.rust }}
36+ components : rustfmt, clippy
3337
3438 - name : Install nextest
3539 uses : taiki-e/install-action@nextest
3640
41+ - name : Cache
42+ uses : actions/cache@v4
43+ with :
44+ path : |
45+ ~/.cargo/bin/
46+ ~/.cargo/registry/index/
47+ ~/.cargo/registry/cache/
48+ ~/.cargo/git/db/
49+ target/
50+ key: ${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
51+
52+ - name : Format
53+ run : cargo fmt -- --check
54+
55+ - name : Clippy
56+ run : cargo clippy --workspace --all-targets -- -D warnings
57+
58+ - name : Clippy / all-features
59+ run : cargo clippy --all-features --all-targets -- -Dclippy::all -Dunused_imports -Dclippy::uninlined-format-args
60+
3761 - name : Run tests
38- run : cargo nextest run
62+ run : cargo nextest run --all-targets --no-fail-fast
3963
4064 - name : Check for snapshot changes
4165 run : |
You can’t perform that action at this time.
0 commit comments