diff --git a/.github/workflows/kuksa_databroker_build.yml b/.github/workflows/kuksa_databroker_build.yml index 43d2d58ea..15990f84c 100644 --- a/.github/workflows/kuksa_databroker_build.yml +++ b/.github/workflows/kuksa_databroker_build.yml @@ -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/install@v0.1 with: crate: cargo-tarpaulin @@ -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: |