-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (32 loc) · 924 Bytes
/
coverage.yml
File metadata and controls
40 lines (32 loc) · 924 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
38
39
40
name: Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Collect coverage data
run: cargo +nightly llvm-cov nextest --all-targets --lcov --output-path lcov.info
- name: Upload coverage to coveralls.io
uses: coverallsapp/github-action@v2
- name: Archive coverage results
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: lcov.info