Debian Codegraph @

.github/workflows/coverage.yml

raw symbols SCIP
1 name: Coverage
2
3 # Controls when the action will run. Triggers the workflow on push or pull request
4 # events but only for the master branch
5 on:
6 push:
7 branches: [ main ]
8 pull_request:
9 branches: [ main ]
10
11 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12 jobs:
13 tarpaulin:
14 runs-on: ubuntu-latest
15 steps:
16 - name: Checkout repository
17 uses: actions/checkout@v4
18
19 - name: Install stable toolchain
20 uses: actions-rs/toolchain@v1
21 with:
22 profile: minimal
23 toolchain: stable
24 override: true
25
26 - name: Install cargo-tarpaulin
27 run: cargo install cargo-tarpaulin
28
29 - name: Install request-key for Request/Instantiate flow
30 run: |
31 cargo build --example request-key --features std
32 sudo mv ./target/debug/examples/request-key /sbin/request-key
33
34 - name: Run cargo-tarpaulin
35 run: cargo-tarpaulin --lib -- --include-ignored
36
37 - name: Upload to codecov.io
38 uses: codecov/codecov-action@v5
39 with:
40 file: ./cobertura.xml
41