| 1 |
name: Run coverage |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
coverage: |
| 7 |
runs-on: ubuntu-latest |
| 8 |
steps: |
| 9 |
- name: checkout |
| 10 |
uses: actions/checkout@v4 |
| 11 |
with: |
| 12 |
# needed for codecov |
| 13 |
fetch-depth: 0 |
| 14 |
- name: Install tools |
| 15 |
run: | |
| 16 |
sudo apt-get install -qqy bats iptables iproute2 jq |
| 17 |
# Add PPA for CRIU |
| 18 |
sudo add-apt-repository ppa:criu/ppa |
| 19 |
sudo apt-get update |
| 20 |
sudo apt-get install -qqy criu |
| 21 |
- name: Run make coverage |
| 22 |
run: sudo -E make coverage |
| 23 |
|
| 24 |
- name: Upload coverage reports to Codecov |
| 25 |
uses: codecov/codecov-action@v4 |
| 26 |
with: |
| 27 |
fail_ci_if_error: true |
| 28 |
file: .coverage/coverage.out |
| 29 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 30 |
verbose: true |