Skip to content

codecov

codecov #3

Workflow file for this run

name: Codecov Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4 # Updated to Node.js 20
- name: Setup .NET Core
uses: actions/setup-dotnet@v4 # Updated to Node.js 20
with:
dotnet-version: '6.0.x' # specify the .NET version you are using
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --collect:"XPlat Code Coverage"
- name: Generate coverage report
run: reportgenerator -reports:**/coverage.cobertura.xml -targetdir:coverage -reporttypes:Html
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/cobertura.xml
flags: unittests
name: codecov-umbrella