From 47398ec7721e6988323edd249e8596e02d50cdfc Mon Sep 17 00:00:00 2001 From: Jonas Nyrup Date: Sun, 8 Nov 2026 13:22:10 +0100 Subject: [PATCH] Replace Coveralls with octocov Report coverage with octocov instead of an external service. --- .github/workflows/build.yml | 11 ++++++----- .octocov.yml | 17 +++++++++++++++++ CONTRIBUTING.md | 2 +- README.md | 1 - 4 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 .octocov.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f69b9bc..478e7e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,10 @@ jobs: env: DOTNET_NOLOGO: true + permissions: + actions: write + pull-requests: write + steps: - uses: actions/checkout@v7 with: @@ -34,12 +38,9 @@ jobs: with: files: "TestResults/reports/lcov.info" - - name: coveralls - uses: coverallsapp/github-action@v2 + - name: Report code coverage + uses: k1LoW/octocov-action@v1 if: steps.check_files.outputs.files_exists == 'true' - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - file: TestResults/reports/lcov.info - name: Upload artifacts uses: actions/upload-artifact@v7 diff --git a/.octocov.yml b/.octocov.yml new file mode 100644 index 0000000..495407d --- /dev/null +++ b/.octocov.yml @@ -0,0 +1,17 @@ +# Configuration for octocov (https://github.com/k1LoW/octocov), which reports code coverage without an external service. +# The coverage report of the default branch is stored as a GitHub Actions artifact, so that pull requests can show the difference. +coverage: + paths: + - TestResults/reports/lcov.info +comment: + if: is_pull_request + deletePrevious: true +summary: + if: true +report: + if: is_default_branch + datastores: + - artifact://${GITHUB_REPOSITORY} +diff: + datastores: + - artifact://${GITHUB_REPOSITORY} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ae028a..6f15492 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -70,7 +70,7 @@ Please do: * Follow the style presented in the [Coding Guidelines for C#](https://csharpcodingguidelines.com/). * Align with the Fluent Assertions [Design Principles](https://github.com/fluentassertions/fluentassertions/issues/1340) * Ensure that changes are covered by a new or existing set of unit tests which follow the Arrange-Act-Assert syntax such as is used [in this example](https://github.com/fluentassertions/fluentassertions/blob/daaf35b9b59b622c96d0c034e8972a020b2bee55/Tests/FluentAssertions.Shared.Specs/BasicEquivalencySpecs.cs#L33). - * Also the code coverage reported by the coveralls must be non-decreasing unless accepted by the authors. + * Also the code coverage reported by octocov must be non-decreasing unless accepted by the authors. * If the contribution adds a feature or fixes a bug, please update the [**release notes**](https://github.com/fluentassertions/fluentassertions/blob/develop/docs/_pages/releases.md), which is published on the [website](https://fluentassertions.com/releases). * If the contribution changes the public API, the changes needs to be included by running [`AcceptApiChanges.ps1`](https://github.com/fluentassertions/fluentassertions/tree/develop/AcceptApiChanges.ps1)/[`AcceptApiChanges.sh`](https://github.com/fluentassertions/fluentassertions/tree/develop/AcceptApiChanges.sh) or using Rider's [Verify Support](https://plugins.jetbrains.com/plugin/17240-verify-support) plug-in. diff --git a/README.md b/README.md index d8b5a9e..a04b819 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # FluentAssertions for DataSets [![](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) -[![Coveralls branch](https://img.shields.io/coverallsCoverage/github/fluentassertions/fluentassertions.datasets?branch=develop)](https://coveralls.io/github/fluentassertions/fluentassertions.datasets?branch=develop) [![](https://img.shields.io/github/release/FluentAssertions.Datasets/FluentAssertions.Datasets.svg?label=latest%20release&color=007edf)](https://github.com/FluentAssertions/FluentAssertions.DataSets/releases/latest) [![](https://img.shields.io/nuget/dt/FluentAssertions.DataSets.svg?label=downloads&color=007edf&logo=nuget)](https://www.nuget.org/packages/FluentAssertions.DataSets) [![](https://img.shields.io/librariesio/dependents/nuget/FluentAssertions.DataSets.svg?label=dependent%20libraries)](https://libraries.io/nuget/FluentAssertions.DataSets)