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

Commit d790a08

Browse files
committed
Trying to avoid nighly test
1 parent 73d7343 commit d790a08

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

.github/workflows/kuksa_databroker_build.yml

+3-24
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ 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
7166
- uses: actions-rs/install@v0.1
7267
with:
7368
crate: cargo-tarpaulin
@@ -93,30 +88,14 @@ jobs:
9388
run: |
9489
rustup toolchain list
9590
cargo --version
96-
cargo +nightly version
9791
9892
- name: Run Tests
9993
working-directory: ${{github.workspace}}
10094
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
11298
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
12099
121100
- name: Run code coverage
122101
run: |

0 commit comments

Comments
 (0)