Skip to content

Commit ae71f59

Browse files
committed
Replace Coveralls with octocov
Report coverage with octocov instead of an external service.
1 parent 5518373 commit ae71f59

3 files changed

Lines changed: 23 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
env:
1111
DOTNET_NOLOGO: true
1212

13+
permissions:
14+
actions: write
15+
pull-requests: write
16+
1317
steps:
1418
- uses: actions/checkout@v7
1519
with:
@@ -34,12 +38,9 @@ jobs:
3438
with:
3539
files: "TestResults/reports/lcov.info"
3640

37-
- name: coveralls
38-
uses: coverallsapp/github-action@v2
41+
- name: Report code coverage
42+
uses: k1LoW/octocov-action@v1
3943
if: steps.check_files.outputs.files_exists == 'true'
40-
with:
41-
github-token: ${{ secrets.GITHUB_TOKEN }}
42-
file: TestResults/reports/lcov.info
4344

4445
- name: Upload artifacts
4546
uses: actions/upload-artifact@v7

‎.octocov.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configuration for octocov (https://github.com/k1LoW/octocov), which reports code coverage without an external service.
2+
# The coverage report of the default branch is stored as a GitHub Actions artifact, so that pull requests can show the difference.
3+
coverage:
4+
paths:
5+
- TestResults/reports/lcov.info
6+
comment:
7+
if: is_pull_request
8+
deletePrevious: true
9+
summary:
10+
if: true
11+
report:
12+
if: is_default_branch
13+
datastores:
14+
- artifact://${GITHUB_REPOSITORY}
15+
diff:
16+
datastores:
17+
- artifact://${GITHUB_REPOSITORY}

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# FluentAssertions for DataSets
22

33
[![](https://img.shields.io/github/actions/workflow/status/fluentassertions/fluentassertions.datasets/build.yml?branch=main)](https://github.com/fluentassertions/fluentassertions.datasets/actions?query=branch%3Amain)
4-
[![Coveralls branch](https://img.shields.io/coverallsCoverage/github/fluentassertions/fluentassertions.datasets?branch=develop)](https://coveralls.io/github/fluentassertions/fluentassertions.datasets?branch=develop)
54
[![](https://img.shields.io/github/release/FluentAssertions.Datasets/FluentAssertions.Datasets.svg?label=latest%20release&color=007edf)](https://github.com/FluentAssertions/FluentAssertions.DataSets/releases/latest)
65
[![](https://img.shields.io/nuget/dt/FluentAssertions.DataSets.svg?label=downloads&color=007edf&logo=nuget)](https://www.nuget.org/packages/FluentAssertions.DataSets)
76
[![](https://img.shields.io/librariesio/dependents/nuget/FluentAssertions.DataSets.svg?label=dependent%20libraries)](https://libraries.io/nuget/FluentAssertions.DataSets)

0 commit comments

Comments
 (0)