-
Notifications
You must be signed in to change notification settings - Fork 93
52 lines (39 loc) · 1.33 KB
/
code_coverage.yml
File metadata and controls
52 lines (39 loc) · 1.33 KB
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
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@v4
- 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
run: cargo test --features esplora
- name: Test Cbf
run: cargo test --features cbf
- 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/