Bump to 5.18.1 #279
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: nats | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| config: Release | |
| disable_test_parallelization: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup .NET 9 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Setup .NET 10 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Start NATS and PostgreSQL | |
| run: docker compose up -d nats postgresql | |
| - name: Wait for NATS | |
| run: | | |
| echo "Waiting for NATS to be ready..." | |
| for i in {1..30}; do | |
| if nc -z localhost 4222 > /dev/null 2>&1; then | |
| echo "NATS is ready" | |
| break | |
| fi | |
| echo "Attempt $i: NATS not ready yet, waiting..." | |
| sleep 2 | |
| done | |
| - name: Wait for PostgreSQL | |
| run: | | |
| echo "Waiting for PostgreSQL to be ready..." | |
| for i in {1..30}; do | |
| if nc -z localhost 5433 > /dev/null 2>&1; then | |
| echo "PostgreSQL is ready" | |
| break | |
| fi | |
| echo "Attempt $i: PostgreSQL not ready yet, waiting..." | |
| sleep 2 | |
| done | |
| - name: Build | |
| run: dotnet build src/Transports/NATS/Wolverine.Nats.Tests/Wolverine.Nats.Tests.csproj --configuration ${{ env.config }} --framework net10.0 | |
| - name: Test | |
| run: dotnet test src/Transports/NATS/Wolverine.Nats.Tests/Wolverine.Nats.Tests.csproj --configuration ${{ env.config }} --framework net10.0 --no-build --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" | |
| - name: Stop containers | |
| if: always() | |
| run: docker compose down |