Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vncoelho authored Feb 23, 2024
1 parent d45122f commit 907b04a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ jobs:
run: |
mkdir -p ${GITHUB_WORKSPACE}/coverage
find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild
dotnet test /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov /p:MergeWith=${GITHUB_WORKSPACE}/coverage/lcov.json
ls ./coverage/
cat ./coverage/lcov.json
cat ./coverage/lcov.net7.0.json
dotnet test ./tests/Neo.ConsoleService.Tests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/CoverageResults
dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/CoverageResults /p:MergeWith=${GITHUB_WORKSPACE}/CoverageResults/coverage.json
dotnet test ./tests/Neo.UnitTests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/CoverageResults /p:MergeWith=${GITHUB_WORKSPACE}/CoverageResults/coverage.json
dotnet test ./tests/Neo.VM.Tests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/CoverageResults /p:MergeWith=${GITHUB_WORKSPACE}/CoverageResults/coverage.json
dotnet test ./tests/Neo.Json.UnitTests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/CoverageResults /p:MergeWith=${GITHUB_WORKSPACE}/CoverageResults/coverage.json /p:CoverletOutputFormat="opencover"
ls ./CoverageResults/
- name: Coveralls
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ${GITHUB_WORKSPACE}/coverage/lcov.json
file: ${GITHUB_WORKSPACE}/CoverageResults/coverage.json

PublishPackage:
if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/')
Expand Down

0 comments on commit 907b04a

Please sign in to comment.