Skip to content

Commit

Permalink
.github: add CodeCov report
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Aug 29, 2023
1 parent c735b2c commit c9f61e3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CodeCov
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
codecov:
name: CodeCov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install tools
run: |
sudo apt update
sudo apt install --yes \
build-essential \
gcovr \
meson \
pkg-config \
libfuse-dev \
libfuse3-dev \
liblz4-dev \
liblzma-dev \
zlib1g-dev \
libzstd-dev \
squashfs-tools
- name: Configure
run: |
CC=gcc meson setup build \
-Db_coverage=true \
-Dwerror=true \
-Dexamples=true \
-Dzlib=enabled \
-Dlz4=enabled \
-Dlzma=enabled \
-Dzstd=enabled \
-Dthreads=enabled \
-Dfuse-old=enabled \
-Dtest=extended
- name: Test
run: |
ninja -C build test coverage-xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit c9f61e3

Please sign in to comment.