-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (32 loc) · 959 Bytes
/
codecov.yml
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
# From: https://github.com/codecov/example-rust/blob/main/.github/workflows/rust.yml
name: coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
environment: main
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: llvm-tools-preview
- name: cargo install cargo-llvm-cov
run: cargo install cargo-llvm-cov
- name: cargo llvm-cov
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
- name: codecov
uses: codecov/codecov-action@v3
with:
# Repository upload token - get it from codecov.io.
token: ${{ secrets.CODECOV_TOKEN }}
# Specify whether the Codecov output should be verbose
verbose: true
fail_ci_if_error: true