|
7 | 7 |
|
8 | 8 | env:
|
9 | 9 | DOTNET_VERSION: 8.0.x
|
| 10 | + COVERALL_COLLECT_OUTPUT: "/p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/'" |
| 11 | + COVERALL_MERGE_PATH: "/p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json'" |
10 | 12 |
|
11 | 13 | jobs:
|
12 | 14 |
|
@@ -40,21 +42,19 @@ jobs:
|
40 | 42 | if: matrix.os == 'ubuntu-latest'
|
41 | 43 | run: |
|
42 | 44 | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev
|
43 |
| - COVERALL_COLLECT_OUTPUT="/p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/'" |
44 |
| - COVERALL_MERGE_PATH="/p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json'" |
45 | 45 |
|
46 |
| - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests $COVERALL_COLLECT_OUTPUT |
47 |
| - dotnet test ./tests/Neo.ConsoleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
48 |
| - dotnet test ./tests/Neo.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
49 |
| - dotnet test ./tests/Neo.VM.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
50 |
| - dotnet test ./tests/Neo.Json.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
| 46 | + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ |
| 47 | + dotnet test ./tests/Neo.ConsoleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 48 | + dotnet test ./tests/Neo.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 49 | + dotnet test ./tests/Neo.VM.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 50 | + dotnet test ./tests/Neo.Json.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
51 | 51 |
|
52 | 52 | # Plugins
|
53 |
| - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
54 |
| - dotnet test ./tests/Neo.Network.RPC.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
55 |
| - dotnet test ./tests/Neo.Plugins.OracleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
56 |
| - dotnet test ./tests/Neo.Plugins.RpcServer.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH |
57 |
| - dotnet test ./tests/Neo.Plugins.Storage.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH /p:CoverletOutputFormat='lcov' |
| 53 | + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 54 | + dotnet test ./tests/Neo.Network.RPC.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 55 | + dotnet test ./tests/Neo.Plugins.OracleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 56 | + dotnet test ./tests/Neo.Plugins.RpcServer.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ |
| 57 | + dotnet test ./tests/Neo.Plugins.Storage.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ /p:CoverletOutputFormat='lcov' |
58 | 58 |
|
59 | 59 | - name: Coveralls
|
60 | 60 | if: matrix.os == 'ubuntu-latest'
|
|
0 commit comments