Skip to content

Commit

Permalink
[ci skip] ci: switch to codecov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Feb 12, 2024
1 parent 52c85f3 commit ac82200
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 52 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Install dotCover
shell: powershell
run: |
dotnet tool install --global JetBrains.dotCover.GlobalTool
- name: Build
run: dotnet build --no-restore --configuration Release

Expand All @@ -44,3 +49,15 @@ jobs:

- name: Test .NET 7
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0

- name: Test .NET 8
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0

- name: Collect coverage
run: dotnet dotcover test --dcReportType=HTML

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: oliverbooth/X10D
50 changes: 0 additions & 50 deletions .github/workflows/sonarcloud.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p align="center">
<a href="https://github.com/oliverbooth/X10D/actions/workflows/dotnet.yml"><img src="https://img.shields.io/github/actions/workflow/status/oliverbooth/X10D/dotnet.yml?style=flat-square" alt="GitHub Workflow Status" title="GitHub Workflow Status"></a>
<a href="https://github.com/oliverbooth/X10D/issues"><img src="https://img.shields.io/github/issues/oliverbooth/X10D?style=flat-square" alt="GitHub Issues" title="GitHub Issues"></a>
<a href="https://sonarcloud.io/dashboard?id=X10D"><img src="https://img.shields.io/sonar/coverage/X10D?server=https%3A%2F%2Fsonarcloud.io&style=flat-square" alt="Coverage"></a>
<a href="https://app.codecov.io/gh/oliverbooth/X10D/"><img src="https://img.shields.io/codecov/c/github/oliverbooth/X10D?style=flat-square" alt="Coverage"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/dt/X10D?style=flat-square" alt="NuGet Downloads" title="NuGet Downloads"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/v/X10D?label=stable&style=flat-square" alt="Stable Version" title="Stable Version"></a>
<a href="https://www.nuget.org/packages/X10D/"><img src="https://img.shields.io/nuget/vpre/X10D?label=nightly&style=flat-square" alt="Nightly Version" title="Nightly Version"></a>
Expand Down
1 change: 0 additions & 1 deletion X10D.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{
.github\workflows\nightly.yml = .github\workflows\nightly.yml
.github\workflows\prerelease.yml = .github\workflows\prerelease.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\sonarcloud.yml = .github\workflows\sonarcloud.yml
.github\workflows\source_validator.yml = .github\workflows\source_validator.yml
.github\workflows\unity.yml = .github\workflows\unity.yml
EndProjectSection
Expand Down

0 comments on commit ac82200

Please sign in to comment.