Skip to content

Commit bfc96df

Browse files
joaoantoniocardosopatrickelectric
authored andcommitted
.github: workflows: Adopt cargo-nextest for parallel test execution
1 parent e65c9cb commit bfc96df

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

.config/nextest.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[profile.default]
2+
retries = { backoff = "fixed", count = 2, delay = "500ms" }

.github/workflows/build.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,15 @@ jobs:
2626
- name: Install build dependencies - Cargo-Binstall
2727
uses: cargo-bins/cargo-binstall@main
2828

29-
- name: Install build dependencies - Trunk
30-
run: cargo binstall -y trunk
29+
- name: Install build dependencies - Trunk and cargo-nextest
30+
run: cargo binstall -y trunk cargo-nextest
3131

3232
- name: Building frontend (wasm32)
3333
working-directory: src/webpage
3434
run: trunk build --release --locked --verbose
3535

36-
- name: Building tests
37-
run: SKIP_FRONTEND=1 cargo test --no-run --locked --verbose
38-
3936
- name: Run Tests
40-
run: |
41-
SKIP_FRONTEND=1 cargo test --verbose -- --nocapture
42-
SKIP_FRONTEND=1 cargo test test_udpserver_receive_only --verbose -- --nocapture
43-
SKIP_FRONTEND=1 cargo test test_udpserver_send_only --verbose -- --nocapture --ignored
44-
SKIP_FRONTEND=1 cargo test test_udpclient_send_only --verbose -- --nocapture --ignored
45-
SKIP_FRONTEND=1 cargo test test_tcpserver_receive_only --verbose -- --nocapture --ignored
46-
SKIP_FRONTEND=1 cargo test test_tcpserver_send_only --verbose -- --nocapture --ignored
47-
SKIP_FRONTEND=1 cargo test test_tcpclient_send_only --verbose -- --nocapture --ignored
48-
SKIP_FRONTEND=1 cargo test test_tcpclient_receive_only --verbose -- --nocapture --ignored
49-
SKIP_FRONTEND=1 cargo test test_wsserver_receive_only --verbose -- --nocapture --ignored
50-
SKIP_FRONTEND=1 cargo test test_wsserver_send_only --verbose -- --nocapture --ignored
51-
SKIP_FRONTEND=1 cargo test test_wsclient_send_only --verbose -- --nocapture --ignored
52-
SKIP_FRONTEND=1 cargo test test_wsclient_receive_only --verbose -- --nocapture --ignored
37+
run: SKIP_FRONTEND=1 cargo nextest run --locked --verbose
5338

5439
build:
5540
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)