@@ -122,25 +122,25 @@ jobs:
122
122
uses : ./.github/workflows/actions/toolchain-and-cache
123
123
with :
124
124
cache-version : ${{ secrets.CACHE_VERSION }}
125
- cargo-tools : cargo2junit
125
+ cargo-tools : cargo-nextest
126
+
127
+ - name : Build tests
128
+ run : cargo nextest run --no-run ${{ matrix.test-args }}
126
129
127
130
- name : Run tests
128
131
shell : bash
129
132
run : |
130
- set -o pipefail && \
131
- cargo test --no-fail-fast ${{ matrix.test-args }}
132
- # TODO: Previous command that uses unstable options which are not supported anymore in stable toolchain
133
- #cargo test --no-fail-fast ${{ matrix.test-args }} \
134
- # -- -Z unstable-options --format json --report-time \
135
- # | tee >(cargo2junit > test-results${{ matrix.artifact-suffix }}-${{ runner.os }}-${{ runner.arch }}.xml)
133
+ cargo nextest run --profile ci ${{ matrix.test-args }}
134
+ # Rename junit file to include runner info
135
+ mv target/nextest/ci/tests-result.junit.xml test-results${{ matrix.artifact-suffix }}-${{ runner.os }}-${{ runner.arch }}.xml
136
136
137
137
- name : Upload Tests Results
138
138
uses : actions/upload-artifact@v3
139
139
if : success() || failure()
140
140
with :
141
141
name : test-results${{ matrix.artifact-suffix }}-${{ runner.os }}-${{ runner.arch }}
142
142
path : |
143
- ./**/ test-results-*.xml
143
+ ./test-results-*.xml
144
144
145
145
check :
146
146
runs-on : ubuntu-22.04
@@ -232,9 +232,7 @@ jobs:
232
232
if-no-files-found : error
233
233
234
234
publish-tests-results :
235
- # TODO: reactivate when cargo test errors export to json works in stable version
236
- # if: success() || failure()
237
- if : false
235
+ if : success() || failure()
238
236
runs-on : ubuntu-22.04
239
237
needs :
240
238
- test
0 commit comments