-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.1 KB
/
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
36
37
name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main, dev ]
env:
RUST_BACKTRACE: 1
jobs:
test:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --force-clean --verbose --all-features --engine llvm --timeout 120 --out Lcov
- name: upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
# - name: Upload to codecov.io
# uses: codecov/codecov-action@v2
# with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
# fail_ci_if_error: true