This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Commit d790a08 1 parent 73d7343 commit d790a08 Copy full SHA for d790a08
File tree 1 file changed +3
-24
lines changed
1 file changed +3
-24
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
71
66
- uses : actions-rs/install@v0.1
72
67
with :
73
68
crate : cargo-tarpaulin
@@ -93,30 +88,14 @@ jobs:
93
88
run : |
94
89
rustup toolchain list
95
90
cargo --version
96
- cargo +nightly version
97
91
98
92
- name : Run Tests
99
93
working-directory : ${{github.workspace}}
100
94
run : |
101
- # report-time is an experimental feature, and that is why we must use nightly version and install it above
102
- cargo +nightly test --all-targets -- -Z unstable-options --report-time --format json --test-threads=1| tee results.json
103
- cat results.json | cargo2junit > results.xml
104
-
105
- # - name: Publish test results as PR comment
106
- # uses: EnricoMi/publish-unit-test-result-action@v1
107
- # if: github.event_name == 'pull_request'
108
- # with:
109
- # check_name: Test Results
110
- # github_token: ${{ secrets.GITHUB_TOKEN }}
111
- # files: results.xml
95
+ cargo test --all-targets | tee results.txt
96
+ # First ignore all lined with "0 failed", if failed occurs anywhere else we expect there to be an error
97
+ grep -v "0 failed" results.txt | grep -cv failed
112
98
113
- - name : Upload testing report
114
- # Upload results even if test failed
115
- if : always()
116
- uses : actions/upload-artifact@v3
117
- with :
118
- name : Unit test results
119
- path : results.xml
120
99
121
100
- name : Run code coverage
122
101
run : |
You can’t perform that action at this time.
0 commit comments