Skip to content

chore: added code coverage reporting #11

chore: added code coverage reporting

chore: added code coverage reporting #11

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x' # Specify the .NET version here
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --logger "trx" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Upload Test Results
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: test-results
path: /test/MoreDotNet.Tests/TestResults/*.trx
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './test/MoreDotNet.Tests/coverage.net8.0.info'