Skip to content

Commit 2e84974

Browse files
committed
ci: add cargo nextest
1 parent a977d8d commit 2e84974

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/format-lint-test.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ jobs:
4242
- uses: actions/checkout@v4
4343

4444
- name: Use Rust stable
45-
# TODO Set back to @stable (workaround for #224).
46-
# uses: dtolnay/rust-toolchain@1.77.2 fails because it does not include rustfmt.
47-
uses: dtolnay/rust-toolchain@master
48-
with:
49-
toolchain: 1.77.2
50-
components: clippy, rustfmt
45+
uses: dtolnay/rust-toolchain@stable
5146

5247
- name: Install dependencies
5348
working-directory: ./unime/src-tauri
5449
run: |
5550
sudo apt-get update
5651
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
5752
53+
- name: Install cargo-nextest
54+
uses: baptiste0928/cargo-install@v1
55+
with:
56+
crate: cargo-nextest
57+
args: --locked
58+
5859
- name: Format
5960
working-directory: ./unime/src-tauri
6061
run: cargo fmt -- --check
@@ -82,7 +83,7 @@ jobs:
8283

8384
- name: Test
8485
working-directory: ./unime/src-tauri
85-
run: cargo test
86+
run: cargo nextest run --retries 2
8687

8788
identity_wallet:
8889
runs-on: ubuntu-latest
@@ -91,17 +92,19 @@ jobs:
9192
- uses: actions/checkout@v4
9293

9394
- name: Use Rust stable
94-
# TODO See comment above.
95-
uses: dtolnay/rust-toolchain@master
96-
with:
97-
toolchain: 1.77.2
98-
components: clippy, rustfmt
95+
uses: dtolnay/rust-toolchain@stable
9996

10097
- name: Install dependencies
10198
working-directory: ./identity-wallet
10299
run: |
103100
sudo apt-get update
104101
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
102+
103+
- name: Install cargo-nextest
104+
uses: baptiste0928/cargo-install@v1
105+
with:
106+
crate: cargo-nextest
107+
args: --locked
105108

106109
- name: Format
107110
working-directory: ./identity-wallet
@@ -113,4 +116,4 @@ jobs:
113116

114117
- name: Test
115118
working-directory: ./identity-wallet
116-
run: cargo test
119+
run: cargo nextest run --retries 2

0 commit comments

Comments
 (0)