-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(gh-actions): recover code coverage workflow
- Loading branch information
Showing
1 changed file
with
9 additions
and
10 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 |
---|---|---|
@@ -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: | ||
|