From cd6c2575efed13105a0c61a98e898f217b756dec Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 29 Aug 2023 20:44:51 +0200 Subject: [PATCH] .github: add CodeCov report --- .github/workflows/codecov.yaml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/codecov.yaml diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml new file mode 100644 index 000000000..464c798c8 --- /dev/null +++ b/.github/workflows/codecov.yaml @@ -0,0 +1,48 @@ +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 \ + meson \ + pkg-config \ + libfuse-dev \ + libfuse3-dev \ + liblz4-dev \ + liblzma-dev \ + zlib1g-dev \ + libzstd-dev \ + squashfs-tools + - name: Configure + run: | + CC=gcc meson setup /tmp/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 /tmp/build test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}