Skip to content

Commit

Permalink
Avoid add package in other os
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Feb 22, 2024
1 parent 0051d28 commit 01a646c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
dotnet format --verify-no-changes --verbosity diagnostic
- name: Test
- name: Prepare coverage
if: matrix.os == 'ubuntu-latest'
run: |
find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild
- name: Test
run: |
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov /p:MergeWith=${GITHUB_WORKSPACE}/coverage/lcov.net7.0.info
- name: Coveralls
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 01a646c

Please sign in to comment.