diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef96993..bd14a86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,10 @@ jobs: env: DOTNET_NOLOGO: true + permissions: + actions: write + pull-requests: write + steps: - uses: actions/checkout@v7 with: @@ -35,11 +39,8 @@ jobs: BuildNumber: ${{ github.run_number }} ApiKey: ${{ secrets.NUGETAPIKEY }} - - name: coveralls - uses: coverallsapp/github-action@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - file: TestResults/reports/lcov.info + - name: Report code coverage + uses: k1LoW/octocov-action@v1 - 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/README.md b/README.md index 68fec18..2052a0c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![](https://img.shields.io/nuget/dt/FluentAssertions.Json.svg?label=nuget%20downloads)](https://www.nuget.org/packages/FluentAssertions.Json) [![](https://img.shields.io/librariesio/dependents/nuget/FluentAssertions.Json.svg?label=dependent%20libraries)](https://libraries.io/nuget/FluentAssertions.Json) ![](https://img.shields.io/badge/release%20strategy-githubflow-orange.svg) -[![Coverage Status](https://coveralls.io/repos/github/fluentassertions/fluentassertions.json/badge.svg?branch=master)](https://coveralls.io/github/fluentassertions/fluentassertions.json?branch=master) ## *"With Fluent Assertions, the assertions look beautiful, natural and most importantly, extremely readable"* (by [Girish](https://twitter.com/girishracharya))