File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1313jobs :
1414 test :
1515 strategy :
16+ fail-fast : false
1617 matrix :
1718 os :
1819 - ubuntu-latest
2526 - os : ubuntu-latest
2627 rust : msrv
2728 lint : 1
28- - rust : stable
29+ - rust : msrv
2930 rust-args : --all-features
3031 runs-on : ${{ matrix.os }}
3132 steps :
3839 ver="${{ matrix.rust }}"
3940 if [ "$ver" = msrv ]; then
4041 ver=$(cargo metadata --format-version 1 --no-deps | \
41- jq -r '.packages[0] .rust_version')
42+ jq -r 'first( .packages[] | select( .rust_version != null).rust_version) ')
4243 extra=(-c rustfmt -c clippy)
4344 fi
4445 rustup toolchain install "$ver" --profile minimal --no-self-update "${extra[@]}"
@@ -49,13 +50,10 @@ jobs:
4950
5051 - uses : Swatinem/rust-cache@v2
5152
52- - name : cargo test
53- run : cargo test --workspace ${{ matrix.rust-args }}
53+ - run : cargo test --workspace ${{ matrix.rust-args }}
5454
55- - name : rustfmt
55+ - run : cargo fmt --all -- --check
5656 if : github.event_name == 'pull_request' && matrix.lint
57- run : cargo fmt --all -- --check
5857
59- - name : clippy
58+ - run : cargo clippy --all --tests --all-features -- -D warnings
6059 if : github.event_name == 'pull_request' && matrix.lint
61- run : cargo clippy --all --tests --all-features -- -D warnings
You can’t perform that action at this time.
0 commit comments