IHS-61 IHS-43 IHS-77 Project restructure, move tagger to separate pro… #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload test coverage report to codecov | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
codecov: | |
env: | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
cache: true | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true | |
- name: Test | |
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
directory: ImageHosting.Storage.UnitTests | |
file: coverage.opencover.xml | |
flags: unittests | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: ${{ github.repository }} | |