Skip to content

Commit

Permalink
[Examples] remove examples from workflow and create a solution for ex…
Browse files Browse the repository at this point in the history
…amples. (neo-project#1029)

* remove examples from workflow and create a solution for examples.

* Revert "remove examples from workflow and create a solution for examples."

This reverts commit 10c6ee6.

* remove format change

* add sln

* format
  • Loading branch information
Jim8y committed Apr 24, 2024
1 parent dd17081 commit 63f5a35
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 310 deletions.
130 changes: 0 additions & 130 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,136 +75,6 @@ jobs:
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.ContractCall.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.ContractCall.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Event.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Event.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Exception.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Exception.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.HelloWorld.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.HelloWorld.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Inscription.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Inscription.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Modifier.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Modifier.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.NEP17.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.NEP17.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.NFT.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.NFT.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Oracle.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Oracle.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.SampleRoyaltyNEP11Token.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.SampleRoyaltyNEP11Token.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Storage.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Storage.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.Transfer.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.Transfer.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Example.SmartContract.ZKP.UnitTests
run: |
dotnet test ./examples/Example.SmartContract.ZKP.UnitTests \
--no-build \
-e "COVERAGE_MERGE_JOIN=${{ github.workspace }}/coverage-join/coverage.json" \
-l "console;verbosity=detailed" \
/p:CollectCoverage=true \
/p:CoverletOutput=${{ github.workspace }}/coverage-join/ \
/p:MergeWith=${{ github.workspace }}/coverage-join/coverage.json \
/p:Exclude=\"[Neo.SmartContract.TestEngine]*,[Neo.Compiler.CSharp.UnitTests]*,[Neo]*,[Neo.IO]*,[Neo.Json]*,[Neo.VM]*,[Neo.Extensions]*,[Neo.Cryptography.BLS12_381]*\"
- name: Test Neo.SmartContract.Template.UnitTests
run: |
dotnet test ./tests/Neo.SmartContract.Template.UnitTests \
Expand Down
Loading

0 comments on commit 63f5a35

Please sign in to comment.