forked from twilight-rs/twilight
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 839 Bytes
/
codecov-lib.yml
File metadata and controls
37 lines (29 loc) · 839 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: "Code Coverage"
on:
schedule:
- cron: 13 9 * * *
workflow_dispatch:
env:
# Use `haswell` instead of `native` due to some GitHub Actions runners not
# supporting some `avx512` instructions.
RUSTFLAGS: -C target-cpu=haswell
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Collect coverage
uses: actions-rs/tarpaulin@v0.1
with:
args: "--ignore-tests --all-features"
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
- name: Upload coverage to GitHub
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: cobertura.xml