-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | | ||
|