File: coverage.yml

package info (click to toggle)
golang-github-checkpoint-restore-checkpointctl 1.3.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 628 kB
  • sloc: ansic: 208; makefile: 172; sh: 40
file content (30 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (2)
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: Run coverage

on: [push, pull_request]

jobs:
  coverage:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v4
        with:
          # needed for codecov
          fetch-depth: 0
      - name: Install tools
        run: |
          sudo apt-get install -qqy bats iptables iproute2 jq
          # Add PPA for CRIU
          sudo add-apt-repository ppa:criu/ppa
          sudo apt-get update
          sudo apt-get install -qqy criu
      - name: Run make coverage
        run: sudo -E make coverage

      - name: Upload coverage reports to Codecov
        uses: codecov/codecov-action@v4
        with:
          fail_ci_if_error: true
          file: .coverage/coverage.out
          token: ${{ secrets.CODECOV_TOKEN }}
          verbose: true