Skip to content

trying to run the test cover proj #303

trying to run the test cover proj

trying to run the test cover proj #303

Workflow file for this run

name: NET
on:
push:
branches: [ "master" ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ "master" ]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build-test-and-coverage:
permissions:
pages: write
id-token: write
runs-on: ubuntu-24.04
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Run reportgeneration
run: dotnet run --project SharpFractionsTest/SharpFractionsTestCoverage.csproj
- name: Upload ReportGen artifact
uses: actions/upload-pages-artifact@v3
with:
name: ReportGenerator
path: coveragereport
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
artifact_name: ReportGenerator