-
Notifications
You must be signed in to change notification settings - Fork 66
56 lines (42 loc) · 1.48 KB
/
code_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
on: [push]
name: Code Coverage
jobs:
codecov:
name: Code Coverage
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Set profile
run: rustup set profile minimal
- name: Update toolchain
run: rustup update
- name: Override the default toolchain
run: rustup override set nightly
- name: Test Compiler
run: cargo test --features compiler
- name: Test Electrum
run: cargo test --features electrum
- name: Test Esplora-Ureq
run: cargo test --features esplora-ureq
- name: Test Esplora-reqwest
run: cargo test --features esplora-reqwest
# Temporarily disable compact filters
#- name: Test Compact Filters
# run: cargo test --features compact_filters
- name: Test RPC
run: cargo test --features rpc
- id: coverage
name: Generate coverage
uses: actions-rs/grcov@v0.1.5
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ${{ steps.coverage.outputs.report }}
directory: ./coverage/reports/