WolverineFx.Http.Grpc — gRPC Support for Wolverine HTTP Endpoints #365
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: http | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| config: Release | |
| disable_test_parallelization: true | |
| ASPNETCORE_ENVIRONMENT: Development | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| 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 PostgreSQL | |
| run: docker compose up -d postgresql | |
| - name: Wait for PostgreSQL | |
| run: | | |
| echo "Waiting for PostgreSQL to be ready..." | |
| for i in {1..30}; do | |
| if docker compose exec -T postgresql pg_isready -U postgres; then | |
| echo "PostgreSQL is ready" | |
| exit 0 | |
| fi | |
| echo "Attempt $i: PostgreSQL not ready yet, waiting..." | |
| sleep 2 | |
| done | |
| echo "PostgreSQL failed to start" | |
| exit 1 | |
| - name: Build | |
| run: dotnet build src/Http/Wolverine.Http.Tests/Wolverine.Http.Tests.csproj --framework net9.0 --configuration ${{ env.config }} | |
| - name: Test | |
| run: dotnet test src/Http/Wolverine.Http.Tests/Wolverine.Http.Tests.csproj -e Development --framework net9.0 --configuration ${{ env.config }} --no-build --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" | |
| - name: Stop containers | |
| if: always() | |
| run: docker compose down |