Skip to content

Commit 57e3e03

Browse files
committed
update github actions workflow
* Update workflow dependency versions. * Test stable against latest versions of crates.
1 parent 03538d7 commit 57e3e03

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,15 @@ jobs:
1515
env:
1616
RUSTFLAGS: -D warnings
1717
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions-rs/toolchain@v1
18+
- uses: actions/checkout@v3
19+
- uses: dtolnay/rust-toolchain@stable
2020
with:
21-
toolchain: stable
2221
components: rustfmt, clippy
23-
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
22+
- uses: Swatinem/rust-cache@v2
2423
- name: Lint (rustfmt)
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: xfmt
28-
args: --check
24+
run: cargo xfmt --check
2925
- name: Lint (clippy)
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: clippy
33-
args: --all-features --all-targets
26+
run: cargo clippy --all-features --all-targets
3427

3528
build:
3629
name: Build and test
@@ -44,20 +37,19 @@ jobs:
4437
env:
4538
RUSTFLAGS: -D warnings
4639
steps:
47-
- uses: actions/checkout@v2
48-
- uses: actions-rs/toolchain@v1
40+
- uses: actions/checkout@v3
41+
- uses: dtolnay/rust-toolchain@v1
4942
with:
5043
toolchain: ${{ matrix.rust-version }}
51-
override: true
52-
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
44+
- uses: Swatinem/rust-cache@v2
5345
- name: Build
54-
uses: actions-rs/cargo@v1
55-
with:
56-
command: build
46+
run: cargo build
5747
- name: Install nextest
5848
uses: taiki-e/install-action@nextest
5949
- name: Test
60-
uses: actions-rs/cargo@v1
61-
with:
62-
command: nextest
63-
args: run --all-features
50+
run: cargo nextest run --all-fatures
51+
- name: Delete Cargo.lock and test against latest versions
52+
if: matrix.rust-version == 'stable'
53+
run: |
54+
rm Cargo.lock
55+
cargo nextest run --all-features

0 commit comments

Comments
 (0)