diff options
Diffstat (limited to '.github/workflows/codecov.yml')
-rw-r--r-- | .github/workflows/codecov.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..6aaace6 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,35 @@ +name: codecov.io + +on: [push] + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update -y + sudo apt-get install -y \ + expect \ + gcc \ + acl \ + libacl1-dev \ + attr \ + libcap2-bin \ + libcap-dev \ + libonig-dev \ + liburing-dev + + - name: Generate coverage + run: | + ./configure --enable-gcov + make -j$(nproc) check TEST_FLAGS="--sudo" + gcov -abcfpu obj/*/*.o + + - uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true |