Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
update test run to generate code coverage output
  • Loading branch information
kylelaverty committed May 22, 2024
1 parent 951c02b commit f44f37b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup .NET 📦
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup .NET 📦
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore dependencies 📂
run: dotnet restore
- name: Restore dependencies 📂
run: dotnet restore

- name: Build 🧱
run: dotnet build --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore
- name: Test 🧪
run: dotnet test --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal
- name: Build 🧱
run: dotnet build --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore

- name: Test 🧪
run: dotnet test --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov

0 comments on commit f44f37b

Please sign in to comment.