From 23f2cfcce3e9c78ddf2b1ab20e8adb15adde0a3c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 28 Sep 2021 10:45:12 -0400 Subject: ci: Add a codecov.io workflow --- .github/workflows/codecov.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/codecov.yml (limited to '.github/workflows') 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 -- cgit v1.2.3