File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,26 @@ jobs:
146146 with :
147147 key : ${{ matrix.test-suite.name }}
148148
149+ - name : Install cargo-nextest
150+ if : matrix.test-suite.name == 'default'
151+ uses : taiki-e/install-action@v2
152+ with :
153+ tool : cargo-nextest
154+
149155 - name : Start Docker containers
150156 if : matrix.test-suite.name == 'default'
151157 run : make docker-up
152158
153159 - name : Run tests
154- run : cargo test --no-fail-fast ${{ matrix.test-suite.args }}
160+ env :
161+ # Disable debug info to speed up compilation and reduce artifact size
162+ RUSTFLAGS : " -C debuginfo=0"
163+ run : |
164+ if [ "${{ matrix.test-suite.name }}" = "default" ]; then
165+ cargo nextest run ${{ matrix.test-suite.args }}
166+ else
167+ cargo test --no-fail-fast ${{ matrix.test-suite.args }}
168+ fi
155169
156170 - name : Stop Docker containers
157171 if : always() && matrix.test-suite.name == 'default'
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ install-cargo-machete:
3232cargo-machete : install-cargo-machete
3333 cargo machete
3434
35+ install-cargo-nextest :
36+ cargo install --locked cargo-nextest
37+
38+ nextest : install-cargo-nextest
39+ cargo nextest run --all-targets --all-features --workspace
40+
3541install-taplo-cli :
3642 cargo install taplo-cli@0.9.3
3743
@@ -57,7 +63,7 @@ unit-test: doc-test
5763
5864test : docker-up
5965 @trap ' $(MAKE) docker-down' EXIT; \
60- cargo test --no-fail-fast --all-targets --all-features --workspace
66+ $( MAKE ) nextest
6167
6268clean :
6369 cargo clean
You can’t perform that action at this time.
0 commit comments