forked from wboayue/rust-ibapi
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 995 Bytes
/
coverage.yml
File metadata and controls
37 lines (34 loc) · 995 Bytes
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
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.95.0
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Generate coverage (sync + async, merged)
run: |
mkdir -p coverage
cargo llvm-cov clean --workspace
cargo llvm-cov --no-report --no-default-features --features sync
cargo llvm-cov --no-report --no-default-features --features async
cargo llvm-cov report --lcov --output-path coverage/lcov.info
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage/lcov.info
allow-empty: true