summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-09-28 10:45:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-09-28 11:21:20 -0400
commit23f2cfcce3e9c78ddf2b1ab20e8adb15adde0a3c (patch)
tree74b984f5d7ca49dfb165d78c4105f7096475dabf /.github
parent78944c815a5d8d1c93771ca1c343b9406bc262c4 (diff)
downloadbfs-23f2cfcce3e9c78ddf2b1ab20e8adb15adde0a3c.tar.xz
ci: Add a codecov.io workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codecov.yml31
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