From c77ce6684e48647a9cd3e692a3bc96d1e729b201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Naz=C3=A1rio=20Coelho?= Date: Tue, 21 May 2024 07:38:16 -0300 Subject: [PATCH 1/3] Update main.yml --- .github/workflows/main.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f7f9867c8..1ddc35d873 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,18 +40,21 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' - dotnet test ./tests/Neo.ConsoleService.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.UnitTests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.VM.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.Json.UnitTests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' + COVERALL_COLLECT_OUTPUT="/p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/'" + COVERALL_MERGE_PATH="/p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json'" + + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests $COVERALL_COLLECT_OUTPUT + dotnet test ./tests/Neo.ConsoleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.VM.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Json.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.Network.RPC.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.Plugins.OracleService.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.Plugins.RpcServer.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' - dotnet test ./tests/Neo.Plugins.Storage.Tests /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' /p:CoverletOutputFormat='lcov' + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Network.RPC.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Plugins.OracleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Plugins.RpcServer.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Plugins.Storage.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH /p:CoverletOutputFormat='lcov' - name: Coveralls if: matrix.os == 'ubuntu-latest' From 1c2923cb225b3a07f3699ea4c54363fc6432163e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Naz=C3=A1rio=20Coelho?= Date: Wed, 22 May 2024 08:13:29 -0300 Subject: [PATCH 2/3] Update main.yml --- .github/workflows/main.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ddc35d873..4431888b78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ on: env: DOTNET_VERSION: 8.0.x + COVERALL_COLLECT_OUTPUT: "/p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/'" + COVERALL_MERGE_PATH: "/p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json'" jobs: @@ -40,21 +42,19 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - COVERALL_COLLECT_OUTPUT="/p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/'" - COVERALL_MERGE_PATH="/p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json'" - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests $COVERALL_COLLECT_OUTPUT - dotnet test ./tests/Neo.ConsoleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.VM.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.Json.UnitTests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ + dotnet test ./tests/Neo.ConsoleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.VM.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Json.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.Network.RPC.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.Plugins.OracleService.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.Plugins.RpcServer.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH - dotnet test ./tests/Neo.Plugins.Storage.Tests $COVERALL_COLLECT_OUTPUT $COVERALL_MERGE_PATH /p:CoverletOutputFormat='lcov' + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Network.RPC.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Plugins.OracleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Plugins.RpcServer.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Plugins.Storage.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ /p:CoverletOutputFormat='lcov' - name: Coveralls if: matrix.os == 'ubuntu-latest' From 7762b761ee206a2dec2a052b6adf4839d2a6c371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Naz=C3=A1rio=20Coelho?= Date: Wed, 22 May 2024 08:15:16 -0300 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e101b22e6c..3dae25a1df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,18 +43,18 @@ jobs: run: | sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev - dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ - dotnet test ./tests/Neo.ConsoleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.VM.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.Json.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ + dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} + dotnet test ./tests/Neo.ConsoleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.VM.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.Json.UnitTests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} # Plugins - dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.Network.RPC.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.Plugins.OracleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.Plugins.RpcServer.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ - dotnet test ./tests/Neo.Plugins.Storage.Tests ${{ env.COVERALL_COLLECT_OUTPUT }}$ ${{ env.COVERALL_MERGE_PATH }}$ /p:CoverletOutputFormat='cobertura' + dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.Network.RPC.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.Plugins.OracleService.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.Plugins.RpcServer.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} + dotnet test ./tests/Neo.Plugins.Storage.Tests ${{ env.COVERALL_COLLECT_OUTPUT }} ${{ env.COVERALL_MERGE_PATH }} /p:CoverletOutputFormat='cobertura' - name: Coveralls if: matrix.os == 'ubuntu-latest'