|
26 | 26 | - name: Build (Debug)
|
27 | 27 | run: dotnet build ${{ github.workspace }}\Build.csproj
|
28 | 28 | - name: Verify
|
29 |
| - run: dotnet format ${{ github.workspace }}\RabbitMQDotNetClient.sln --no-restore --verify-no-changes --verbosity=diagnostic |
| 29 | + run: dotnet format ${{ github.workspace }}\RabbitMQDotNetClient.sln --no-restore --verify-no-changes |
30 | 30 | - name: APIApproval Test
|
31 | 31 | run: dotnet test "${{ github.workspace }}\projects\Test\Unit\Unit.csproj" --no-restore --no-build --logger 'console;verbosity=detailed' --filter='FullyQualifiedName=Test.Unit.APIApproval.Approve'
|
32 | 32 | - name: Unit Tests
|
|
67 | 67 | id: install-start-rabbitmq
|
68 | 68 | run: .\.ci\windows\gha-setup.ps1
|
69 | 69 | - name: Integration Tests
|
70 |
| - run: dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' --environment 'PASSWORD=grapefruit' --environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" "${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed' |
| 70 | + run: | |
| 71 | + $tx = Start-Job -Verbose -ScriptBlock { & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-server.exe" }; ` |
| 72 | + Start-Sleep -Seconds 1; ` |
| 73 | + Receive-Job -Job $tx; ` |
| 74 | + & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-cli.exe" list; ` |
| 75 | + dotnet test ` |
| 76 | + --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" ` |
| 77 | + --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' ` |
| 78 | + --environment 'RABBITMQ_TOXIPROXY_TESTS=true' ` |
| 79 | + --environment 'PASSWORD=grapefruit' ` |
| 80 | + --environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" ` |
| 81 | + "${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed' |
71 | 82 | - name: Maybe upload RabbitMQ logs
|
72 | 83 | if: failure()
|
73 | 84 | uses: actions/upload-artifact@v3
|
@@ -132,11 +143,11 @@ jobs:
|
132 | 143 | - name: Build (Debug)
|
133 | 144 | run: dotnet build ${{ github.workspace }}/Build.csproj
|
134 | 145 | - name: Verify
|
135 |
| - run: dotnet format ${{ github.workspace }}/RabbitMQDotNetClient.sln --no-restore --verify-no-changes --verbosity=diagnostic |
| 146 | + run: dotnet format ${{ github.workspace }}/RabbitMQDotNetClient.sln --no-restore --verify-no-changes |
136 | 147 | - name: APIApproval Test
|
137 | 148 | run: dotnet test "${{ github.workspace }}/projects/Test/Unit/Unit.csproj" --no-restore --no-build --logger 'console;verbosity=detailed' --filter='FullyQualifiedName=Test.Unit.APIApproval.Approve'
|
138 | 149 | - name: Unit Tests
|
139 |
| - run: dotnet test "${{ github.workspace }}/projects/Test/Unit/Unit.csproj" --no-restore --no-build --verbosity=diagnostic --logger 'console;verbosity=detailed' |
| 150 | + run: dotnet test "${{ github.workspace }}/projects/Test/Unit/Unit.csproj" --no-restore --no-build --logger 'console;verbosity=detailed' |
140 | 151 | - name: Upload Build (Debug)
|
141 | 152 | uses: actions/upload-artifact@v3
|
142 | 153 | with:
|
@@ -165,12 +176,13 @@ jobs:
|
165 | 176 | path: projects
|
166 | 177 | - name: Start RabbitMQ
|
167 | 178 | id: start-rabbitmq
|
168 |
| - run: ${{ github.workspace }}/.ci/ubuntu/gha-setup.sh |
| 179 | + run: ${{ github.workspace }}/.ci/ubuntu/gha-setup.sh toxiproxy |
169 | 180 | - name: Integration Tests
|
170 | 181 | run: |
|
171 | 182 | dotnet test \
|
172 | 183 | --environment "RABBITMQ_RABBITMQCTL_PATH=DOCKER:${{ steps.start-rabbitmq.outputs.id }}" \
|
173 | 184 | --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' \
|
| 185 | + --environment 'RABBITMQ_TOXIPROXY_TESTS=true' \ |
174 | 186 | --environment 'PASSWORD=grapefruit' \
|
175 | 187 | --environment SSL_CERTS_DIR="${{ github.workspace }}/.ci/certs" \
|
176 | 188 | "${{ github.workspace }}/projects/Test/Integration/Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
|
|
0 commit comments