Feature: NATS Backplane #293
Workflow file for this run
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: Build and test | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| DOTNET_NOLOGO: true | |
| TEST_RESULTS: artifacts/tests | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Build solution | |
| run: dotnet build | |
| - name: Run core tests | |
| run: dotnet test --no-build --verbosity normal -l trx --results-directory '${{ env.TEST_RESULTS }}' --filter "FullyQualifiedName~FusionCache&FullyQualifiedName!~NatsL1&FullyQualifiedName!~RedisL1" | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
| if: ${{ success() || failure() }} | |
| with: | |
| files: '${{ env.TEST_RESULTS }}/*.trx' | |
| check_name: "Core Test results" | |
| report_individual_runs: true | |
| action_fail: true | |
| time_unit: milliseconds | |
| #ignore_runs: true | |
| compare_to_earlier_commit: false | |
| test-nats: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| services: | |
| nats: | |
| image: nats:latest | |
| ports: | |
| - 4222:4222 | |
| - 8222:8222 | |
| redis: | |
| image: redis:latest | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Build solution | |
| run: dotnet build | |
| - name: Run NatsL1 tests | |
| run: dotnet test --no-build --verbosity normal -l trx --results-directory '${{ env.TEST_RESULTS }}' --filter "FullyQualifiedName~NatsL1" | |
| - name: Publish Nats test results | |
| uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
| if: ${{ success() || failure() }} | |
| with: | |
| files: '${{ env.TEST_RESULTS }}/*.trx' | |
| check_name: "Nats Test results" | |
| report_individual_runs: true | |
| action_fail: true | |
| time_unit: milliseconds | |
| compare_to_earlier_commit: false | |
| test-redis: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| services: | |
| redis: | |
| image: redis:latest | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Build solution | |
| run: dotnet build | |
| - name: Run RedisL1 tests | |
| run: dotnet test --no-build --verbosity normal -l trx --results-directory '${{ env.TEST_RESULTS }}' --filter "FullyQualifiedName~RedisL1" | |
| - name: Publish Redis test results | |
| uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
| if: ${{ success() || failure() }} | |
| with: | |
| files: '${{ env.TEST_RESULTS }}/*.trx' | |
| check_name: "Redis Test results" | |
| report_individual_runs: true | |
| action_fail: true | |
| time_unit: milliseconds | |
| compare_to_earlier_commit: false |