-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (28 loc) · 1.01 KB
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
tests-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install deps
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1; sudo apt-get clean
- name: Install llvm-tools-preview
run: rustup component add llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Instasll cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
env:
RUSTFLAGS: -D warnings -C target-cpu=native
RUST_BACKTRACE: full
run: cargo llvm-cov --verbose --lcov --output-path lcov.txt --locked
- uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./lcov.txt # optional
fail_ci_if_error: #{{ github.event_name == 'pull_request' }}
verbose: true # optional (default = false)