Skip to content

Commit

Permalink
Trying to avoid nighly test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Jun 20, 2023
1 parent 73d7343 commit d790a08
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/kuksa_databroker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ jobs:
- name: Install Protoc
run: sudo apt-get install -y protobuf-compiler
- uses: actions/checkout@v3
- name: Install minimal nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- uses: actions-rs/[email protected]
with:
crate: cargo-tarpaulin
Expand All @@ -93,30 +88,14 @@ jobs:
run: |
rustup toolchain list
cargo --version
cargo +nightly version
- name: Run Tests
working-directory: ${{github.workspace}}
run: |
# report-time is an experimental feature, and that is why we must use nightly version and install it above
cargo +nightly test --all-targets -- -Z unstable-options --report-time --format json --test-threads=1| tee results.json
cat results.json | cargo2junit > results.xml
# - name: Publish test results as PR comment
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: github.event_name == 'pull_request'
# with:
# check_name: Test Results
# github_token: ${{ secrets.GITHUB_TOKEN }}
# files: results.xml
cargo test --all-targets | tee results.txt
# First ignore all lined with "0 failed", if failed occurs anywhere else we expect there to be an error
grep -v "0 failed" results.txt | grep -cv failed
- name: Upload testing report
# Upload results even if test failed
if: always()
uses: actions/upload-artifact@v3
with:
name: Unit test results
path: results.xml
- name: Run code coverage
run: |
Expand Down

0 comments on commit d790a08

Please sign in to comment.