Skip to content

Commit 7df9af1

Browse files
committed
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 <dsterba@suse.com>
1 parent c06730f commit 7df9af1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ jobs:
5050
with:
5151
name: lcov-out
5252
path: lcov-out
53+
- name: Upload coverage reports to Codecov
54+
uses: codecov/codecov-action@v3
55+
with:
56+
token: ${{ secrets.CODECOV_TOKEN }}
57+
files: ${{ github.workspace }}/lcov-info

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Btrfs-progs
33

44
[![devel](https://github.com/kdave/btrfs-progs/actions/workflows/devel.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/devel.yml)
55
[![coverage](https://github.com/kdave/btrfs-progs/actions/workflows/coverage.yml/badge.svg)](https://github.com/kdave/btrfs-progs/actions/workflows/coverage.yml)
6+
[![codecov](https://codecov.io/gh/kdave/btrfs-progs/branch/coverage-test/graph/badge.svg?token=fhLI8V9s0k)](https://codecov.io/gh/kdave/btrfs-progs)
67
[![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)
78
[![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)
89

0 commit comments

Comments
 (0)