-
Notifications
You must be signed in to change notification settings - Fork 21
23 lines (23 loc) · 889 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
name: Codecov
on:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Generate coverage report
run: |
cd rrule
rustup component add llvm-tools-preview
export RUSTFLAGS="-Cinstrument-coverage"
cargo build --verbose
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
LLVM_PROFILE_FILE="rrule-%p-%m.profraw" cargo test --all-features --verbose
./grcov . --binary-path ../target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "tests/*" --ignore "examples/*" --ignore "bin/*" -o lcov.info
bash <(curl -s https://codecov.io/bash) -f lcov.info
echo "Uploaded code coverage"