-
Notifications
You must be signed in to change notification settings - Fork 574
70 lines (68 loc) · 2.07 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Tests Coverage
on:
workflow_dispatch:
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'
push:
branches:
- master
paths-ignore:
- '**/README.md'
env:
TARPAULIN_VERSION: 0.18.5
# LIBCLANG_PATH: "/usr/lib/llvm-11/lib" # default `llvm-config --prefix`
# SCCACHE_CACHE_SIZE: "100G"
CARGO_INCREMENTAL: 0
jobs:
clean-up-actions:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
test:
name: Coverage Report
runs-on: [self-hosted, linux]
needs: clean-up-actions
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-11-07
components: rustfmt
target: wasm32-unknown-unknown
default: true
# - name: Install additional dependencies
# run: |
# sudo apt update -y &&
# sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: ${{ env.TARPAULIN_VERSION }}
timeout: 900
out-type: Xml
args: '--avoid-cfg-tarpaulin --no-fail-fast --workspace
-e acala-inspect
acala acala-cli e2e-tests acala-service
acala-primitives
acala-rpc
acala-runtime runtime-common runtime-integration-tests karura-runtime mandala-runtime
test-service
--exclude-files */mock.rs */weights.rs'
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)