diff options
-rw-r--r-- | .github/workflows/codecov.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..f582892 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,31 @@ +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 \ + + - 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 |