Skip to content

Commit 0cfa6b5

Browse files
committed
ci: add cargo nextest
1 parent a977d8d commit 0cfa6b5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
sudo apt-get update
5656
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
5757
58+
- name: Install cargo-nextest
59+
uses: baptiste0928/cargo-install@v1
60+
with:
61+
crate: cargo-nextest
62+
args: --locked
63+
5864
- name: Format
5965
working-directory: ./unime/src-tauri
6066
run: cargo fmt -- --check
@@ -82,7 +88,7 @@ jobs:
8288

8389
- name: Test
8490
working-directory: ./unime/src-tauri
85-
run: cargo test
91+
run: cargo nextest run --retries 2
8692

8793
identity_wallet:
8894
runs-on: ubuntu-latest
@@ -102,6 +108,12 @@ jobs:
102108
run: |
103109
sudo apt-get update
104110
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
111+
112+
- name: Install cargo-nextest
113+
uses: baptiste0928/cargo-install@v1
114+
with:
115+
crate: cargo-nextest
116+
args: --locked
105117

106118
- name: Format
107119
working-directory: ./identity-wallet
@@ -113,4 +125,4 @@ jobs:
113125

114126
- name: Test
115127
working-directory: ./identity-wallet
116-
run: cargo test
128+
run: cargo nextest run --retries 2

0 commit comments

Comments
 (0)