-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (33 loc) · 946 Bytes
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Coverage
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
issue_comment:
types:
- created
jobs:
coverage:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'check coverage') }}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-22
target: wasm32-unknown-unknown
default: true
# generate test coverage
- name: Tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
run-types: 'Tests'
args: '-- --avoid-cfg-tarpaulin --skip-clean --workspace --locked'
# upload coverage info
- name: Coverage
uses: codecov/codecov-action@v3.0.0
with:
fail_ci_if_error: true