fix(samples): update perf-benchmarks configuration for local testing … #434
This file contains hidden or 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
| name: Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| env: | |
| BUILD_CONFIG: release | |
| WORKING_DIR: src/libp2p | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v5 | |
| - name: Install dependencies | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: dotnet restore | |
| - name: Build | |
| working-directory: ${{ env.WORKING_DIR }} | |
| run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore | |
| - name: Test | |
| working-directory: ${{ env.WORKING_DIR }} | |
| env: | |
| TEST_OPTS: -c ${{ env.BUILD_CONFIG }} --no-restore | |
| run: | | |
| dotnet test --project Libp2p.Core.Tests/Libp2p.Core.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Multistream.Tests/Libp2p.Protocols.Multistream.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Noise.Tests/Libp2p.Protocols.Noise.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Pubsub.Tests/Libp2p.Protocols.Pubsub.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Quic.Tests/Libp2p.Protocols.Quic.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Yamux.Tests/Libp2p.Protocols.Yamux.Tests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.E2eTests/Libp2p.E2eTests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.Pubsub.E2eTests/Libp2p.Protocols.Pubsub.E2eTests.csproj ${{ env.PACK_OPTS }} | |
| dotnet test --project Libp2p.Protocols.PubsubPeerDiscovery.E2eTests/Libp2p.Protocols.PubsubPeerDiscovery.E2eTests.csproj ${{ env.PACK_OPTS }} |