Skip to content

Update dotnetcore.yml #99

Update dotnetcore.yml

Update dotnetcore.yml #99

Workflow file for this run

name: .NET Core
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '10.0.x'
- name: Build with dotnet
run: dotnet build src/MockQueryable/*.sln --configuration Release
- name: Test with coverage (coverlet)
run: |
dotnet test src/MockQueryable/*.sln \
--configuration Release \
--no-build \
/p:CollectCoverage=true \
/p:CoverletOutput=./TestResults/coverage/ \
/p:CoverletOutputFormat=opencover
- name: Upload coverage results (artifact)
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: ./TestResults