Skip to content

Commit

Permalink
fix: CI failure for Codecov/tarpaulin (#200)
Browse files Browse the repository at this point in the history
Run tarpaulin for code coverage on stable rust instead of nightly.
Nightly rust has our test cases failing due to the changed debug
printing of strings with single quotes "'" so our test cases using
should_panic(expected = <error message>) are failing.

See rust-lang/rust#83079
  • Loading branch information
abungay authored Apr 13, 2021
1 parent 861bc54 commit 33ce4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
image: xd009642/tarpaulin:develop
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1

0 comments on commit 33ce4f7

Please sign in to comment.