Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 556a8bb

Browse files
committed
Fix nightly
1 parent 4728f64 commit 556a8bb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/kuksa_databroker_build.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
- name: Install Protoc
6464
run: sudo apt-get install -y protobuf-compiler
6565
- uses: actions/checkout@v3
66+
- name: Install minimal nightly
67+
uses: actions-rs/toolchain@v1
68+
with:
69+
profile: minimal
70+
toolchain: nightly
6671
- uses: actions-rs/install@v0.1
6772
with:
6873
crate: cargo-tarpaulin
@@ -86,7 +91,10 @@ jobs:
8691
- name: Run Tests
8792
working-directory: ${{github.workspace}}
8893
run: |
89-
cargo test --all-targets -- -Z unstable-options --report-time --format json | cargo2junit > results.xml;
94+
# report-time is an experimental feature, and that is why we must use nightly version and install it above
95+
cargo +nightly test --all-targets -- -Z unstable-options --report-time --format json --test-threads=1| tee results.json
96+
cat results.json | cargo2junit > results.xml
97+
#cargo +nightly test --all-targets -- -Z unstable-options --report-time --format json --test-threads=1 | cargo2junit > results.xml;
9098
9199
# - name: Publish test results as PR comment
92100
# uses: EnricoMi/publish-unit-test-result-action@v1
@@ -97,6 +105,8 @@ jobs:
97105
# files: results.xml
98106

99107
- name: Upload testing report
108+
# Upload results even if test failed
109+
if: always()
100110
uses: actions/upload-artifact@v3
101111
with:
102112
name: Unit test results

0 commit comments

Comments
 (0)