-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (24 loc) · 966 Bytes
/
Copy pathcoverage.yml
File metadata and controls
29 lines (24 loc) · 966 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
name: Coverage
on: [pull_request, push]
jobs:
coverage:
runs-on: ubuntu-22.04
steps:
# v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Rust
run: rustup toolchain install stable --component llvm-tools-preview --target wasm32-wasip2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@ff869c26e4a7acc3087d9d6c1163a80d3957bca7 # cargo-llvm-cov
# WASI guests cannot use the host LLVM coverage runtime.
- name: Build WASM plugins
run: cargo +stable xtask build-plugins
- name: Generate code coverage
env:
DIFFR_PLUGINS_BUILT: "1"
run: cargo +stable llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5
with:
files: lcov.info
fail_ci_if_error: false