Skip to content

Commit

Permalink
Merge pull request #4035 from externl/ci-code-coverage
Browse files Browse the repository at this point in the history
Add code coverage reporting to coveralls.io
  • Loading branch information
externl authored Sep 3, 2024
2 parents 802fd1f + 7ed87d2 commit 0fe51df
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: coverage

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout

uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build

- name: Generate Coverage Reports
run: dotnet test --collect:"XPlat Code Coverage" -p:RunSettingsFilePath=${{ github.workspace }}/build/Coverlet.runsettings
shell: bash

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
files: tests/*/TestResults/*/coverage.cobertura.xml
format: cobertura
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

[![CI](https://github.com/icerpc/icerpc-csharp/actions/workflows/ci.yml/badge.svg)][ci-home]
[![License](https://img.shields.io/github/license/icerpc/icerpc-csharp?color=blue)][license]
[![Coverage Status](https://coveralls.io/repos/github/icerpc/icerpc-csharp/badge.svg?branch=main)](https://coveralls.io/github/icerpc/icerpc-csharp?branch=main)

[Getting started] | [Examples] | [NuGet packages] | [Documentation] | [API reference] | [Building from source]

Expand Down

0 comments on commit 0fe51df

Please sign in to comment.