Skip to content

Commit

Permalink
ci(gh-actions): recover code coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Jun 23, 2024
1 parent 1feca12 commit dd7f81b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
on: push
name: test
permissions:
contents: read
jobs:
run-tests:
runs-on: ubuntu-20.04
container:
image: xd009642/tarpaulin:0.30.0
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rs/[email protected]
with:
toolchain: 1.49.0
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: latest

- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit dd7f81b

Please sign in to comment.