summaryrefslogtreecommitdiffstats
path: root/.github/workflows/codecov.yml
blob: 70cbcd10d8d146bb0ec1e80f3c4fc40750e2c1e1 (plain)
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
name: codecov.io

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install dependencies
        run: |
          sudo apt-get update -y
          sudo apt-get install -y \
              gcc \
              acl \
              libacl1-dev \
              attr \
              libattr1-dev \
              libcap2-bin \
              libcap-dev \
              libonig-dev

      - name: Generate coverage
        run: |
          make -j$(nproc) gcov check
          gcov -abcfu *.c tests/*.c

      - uses: codecov/codecov-action@v2
        with:
          fail_ci_if_error: true