From fedd4cc59646bfe8f8bceefd77d90a6570390f1c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 13 Jul 2023 16:36:26 +0200 Subject: [PATCH] btrfs-progs: ci: upload coverage workflow results to codecov.io Needed to work: - install github app Codecov, accept permissions - copy token from codecov.io to repository secrets - allow actions permissions to run either verified marketplace creators or list codecov/codecov-action@* - set up repository as active on codecov.io, watch results eg. https://app.codecov.io/gh/kdave/btrfs-progs/tree/coverage-test/ Signed-off-by: David Sterba --- .github/workflows/coverage.yml | 5 +++++ README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7f4f529c..4fc0a82b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -50,3 +50,8 @@ jobs: with: name: lcov-out path: lcov-out + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ${{ github.workspace }}/lcov-info diff --git a/README.md b/README.md index c7a097d5..84d63438 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Btrfs-progs [![devel](https://github.com/kdave/btrfs-progs/actions/workflows/devel.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/devel.yml) [![coverage](https://github.com/kdave/btrfs-progs/actions/workflows/coverage.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/coverage.yml) +[![codecov](https://codecov.io/gh/kdave/btrfs-progs/branch/coverage-test/graph/badge.svg?token=fhLI8V9s0k)](https://codecov.io/gh/kdave/btrfs-progs) [![static](https://github.com/kdave/btrfs-progs/actions/workflows/artifacts-static-build.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/artifacts-static-build.yml) [![release](https://github.com/kdave/btrfs-progs/actions/workflows/ci-build-test.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/ci-build-test.yml)