Skip to content

Commit ee306b2

Browse files
committed
CI: update workflow
1 parent 1cb499d commit ee306b2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
jobs:
1414
test:
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
os:
1819
- ubuntu-latest
@@ -25,7 +26,7 @@ jobs:
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:
@@ -38,7 +39,7 @@ jobs:
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

0 commit comments

Comments
 (0)