Skip to content

Commit

Permalink
Update code coverage action (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc authored Aug 19, 2021
1 parent ebaf227 commit 44bf52c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ jobs:
- uses: actions/checkout@v2
- name: Install rustup
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal
- name: Install nightly rust
- name: Install rust
run: |
rustup install nightly
rustup default nightly
- name: Install cargo tarpaulin
run: RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --force cargo-tarpaulin
- name: Run cargo tarpaulin
# TODO: Hook this up to coveralls, so we actually get coverage reports.
run: cargo tarpaulin --features all --verbose # --ciserver travis-ci --coveralls "$TRAVIS_JOB_ID";
rustup install stable
rustup default stable
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
args: '--features all --ignore-tests --out Lcov'
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'

doc:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 44bf52c

Please sign in to comment.