-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Windows workflow action * Changed dotnet test command * fix some stuff * Fix * fix windows action * Added `OverwriteReadOnlyFiles` * revert some stuff * update version for coverallsapp action * fixes to tests * Fixes * fixed * continue on error * Update .github/workflows/main.yml Co-authored-by: Shargon <[email protected]> * fix * revert to do what @shargon wants * Upload * Update .github/workflows/main.yml * Fixed readonly * ci fix * added `--disable-parallel` * fix `-p:Exclude="[Neo.UnitTests]*"` --------- Co-authored-by: Shargon <[email protected]>
- Loading branch information
1 parent
b28f604
commit 251cb6d
Showing
13 changed files
with
46 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ on: | |
|
||
env: | ||
DOTNET_VERSION: 9.0.x | ||
COVERLET_EXCLUDE_COVERAGE: -p:Exclude="[Neo.UnitTests]*" | ||
|
||
jobs: | ||
|
||
|
@@ -39,7 +38,7 @@ jobs: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Build (Everything) | ||
run: dotnet build -p:GITHUB_ACTIONS=true | ||
run: dotnet build --disable-parallel -p:GITHUB_ACTIONS=true | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -70,53 +69,44 @@ jobs: | |
run: | | ||
brew install leveldb | ||
brew install gperftools | ||
dotnet build -p:GITHUB_ACTIONS=true | ||
dotnet build --disable-parallel -p:GITHUB_ACTIONS=true | ||
dotnet test --no-build -p:GITHUB_ACTIONS=true | ||
- name: Test (windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
dotnet build -p:GITHUB_ACTIONS=true | ||
dotnet build --disable-parallel -p:GITHUB_ACTIONS=true | ||
dotnet test --no-build -p:GITHUB_ACTIONS=true | ||
- name: Test for coverall | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get --assume-yes install libleveldb-dev librocksdb-dev | ||
dotnet test ./tests/Neo.Cryptography.BLS12_381.Tests --output ./bin/tests/Neo.Cryptography.BLS12_381.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.ConsoleService.Tests --output ./bin/tests/Neo.ConsoleService.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Extensions.Tests --output ./bin/tests/Neo.Extensions.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
# Plugins | ||
dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet test ./tests/Neo.Plugins.ApplicationLogs.Tests --output ./bin/tests/Neo.Plugins.ApplicationLogs.Tests ${{ env.COVERLET_EXCLUDE_COVERAGE }} -p:GITHUB_ACTIONS=true | ||
dotnet build --disable-parallel -p:GITHUB_ACTIONS=true | ||
dotnet test --no-build -p:GITHUB_ACTIONS=true -p:Exclude="[Neo.UnitTests]*" | ||
- name: Coveralls | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: coverallsapp/[email protected].0 | ||
uses: coverallsapp/[email protected].6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
debug: false | ||
measure: true | ||
allow-empty: true | ||
format: lcov | ||
files: | ||
${{ github.workspace }}/tests/Neo.Cryptography.BLS12_381.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.ConsoleService.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.UnitTests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.VM.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Json.UnitTests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Cryptography.MPTTrie.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Network.RPC.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Plugins.OracleService.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Plugins.RpcServer.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Plugins.Storage.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Plugins.ApplicationLogs.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/tests/Neo.Extensions.Tests/TestResults/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.UnitTests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Cryptography.BLS12_381.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.ConsoleService.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.VM.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Json.UnitTests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Cryptography.MPTTrie.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Network.RPC.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Plugins.OracleService.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Plugins.RpcServer.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Plugins.Storage.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Plugins.ApplicationLogs.Tests/coverage.info | ||
${{ github.workspace }}/TestResults/Neo.Extensions.Tests/coverage.info | ||
|
||
PublishPackage: | ||
if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tests/Neo.ConsoleService.Tests/Neo.ConsoleService.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tests/Neo.Cryptography.MPTTrie.Tests/Neo.Cryptography.MPTTrie.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tests/Neo.Plugins.ApplicationLogs.Tests/Neo.Plugins.ApplicationLogs.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
tests/Neo.Plugins.OracleService.Tests/Neo.Plugins.OracleService.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
tests/Neo.Plugins.RpcServer.Tests/Neo.Plugins.RpcServer.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters