This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Commit 556a8bb 1 parent 4728f64 commit 556a8bb Copy full SHA for 556a8bb
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 63
63
- name : Install Protoc
64
64
run : sudo apt-get install -y protobuf-compiler
65
65
- uses : actions/checkout@v3
66
+ - name : Install minimal nightly
67
+ uses : actions-rs/toolchain@v1
68
+ with :
69
+ profile : minimal
70
+ toolchain : nightly
66
71
- uses : actions-rs/install@v0.1
67
72
with :
68
73
crate : cargo-tarpaulin
86
91
- name : Run Tests
87
92
working-directory : ${{github.workspace}}
88
93
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;
90
98
91
99
# - name: Publish test results as PR comment
92
100
# uses: EnricoMi/publish-unit-test-result-action@v1
97
105
# files: results.xml
98
106
99
107
- name : Upload testing report
108
+ # Upload results even if test failed
109
+ if : always()
100
110
uses : actions/upload-artifact@v3
101
111
with :
102
112
name : Unit test results
You can’t perform that action at this time.
0 commit comments