Skip to content

Commit

Permalink
ci: add codecov (#608)
Browse files Browse the repository at this point in the history
Adds codecov to the workflow suite.
  • Loading branch information
ClementTsang committed Nov 26, 2021
1 parent a64b896 commit 1f6a2a8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Codecov generation via cargo-tarpaulin.

name: coverage

on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- "README.md"
- "docs/**"
- ".github/ISSUE_TEMPLATE/**"
- "CHANGELOG.md"
- "CONTRIBUTING.md"

jobs:
test:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop
options: --security-opt seccomp=unconfined

steps:
- uses: actions/checkout@v2

- uses: Swatinem/rust-cache@v1
with:
key: ${{ matrix.triple.target }}

- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true

0 comments on commit 1f6a2a8

Please sign in to comment.