5
5
6
6
jobs :
7
7
build-win32 :
8
- runs-on : windows-2019
8
+ runs-on : windows-latest
9
9
# https://github.com/NuGet/Home/issues/11548
10
10
env :
11
11
NUGET_CERT_REVOCATION_MODE : offline
42
42
projects/RabbitMQ.*/bin
43
43
integration-win32 :
44
44
needs : build-win32
45
- runs-on : windows-2019
45
+ runs-on : windows-latest
46
46
# https://github.com/NuGet/Home/issues/11548
47
47
env :
48
48
NUGET_CERT_REVOCATION_MODE : offline
57
57
# Note: the cache path is relative to the workspace directory
58
58
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action
59
59
path : ~/installers
60
- key : ${{ runner.os }}-v0-${{ hashFiles('.ci/versions.json') }}
60
+ key : ${{ runner.os }}-v0-${{ hashFiles('.ci/windows/ versions.json') }}
61
61
- name : Download Build (Debug)
62
62
uses : actions/download-artifact@v4
63
63
with :
73
73
Receive-Job -Job $tx; `
74
74
& "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-cli.exe" list; `
75
75
dotnet test `
76
- --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" `
77
76
--environment 'RABBITMQ_LONG_RUNNING_TESTS=true' `
77
+ --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" `
78
78
--environment 'RABBITMQ_TOXIPROXY_TESTS=true' `
79
79
--environment 'PASSWORD=grapefruit' `
80
80
--environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" `
89
89
path : ~/AppData/Roaming/RabbitMQ/log/
90
90
sequential-integration-win32 :
91
91
needs : build-win32
92
- runs-on : windows-2019
92
+ runs-on : windows-latest
93
93
# https://github.com/NuGet/Home/issues/11548
94
94
env :
95
95
NUGET_CERT_REVOCATION_MODE : offline
@@ -104,7 +104,7 @@ jobs:
104
104
# Note: the cache path is relative to the workspace directory
105
105
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action
106
106
path : ~/installers
107
- key : ${{ runner.os }}-v0-${{ hashFiles('.ci/versions.json') }}
107
+ key : ${{ runner.os }}-v0-${{ hashFiles('.ci/windows/ versions.json') }}
108
108
- name : Download Build (Debug)
109
109
uses : actions/download-artifact@v4
110
110
with :
@@ -114,7 +114,12 @@ jobs:
114
114
id : install-start-rabbitmq
115
115
run : ${{ github.workspace }}\.ci\windows\gha-setup.ps1
116
116
- name : Sequential Integration Tests
117
- run : dotnet test --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" "${{ github.workspace }}\projects\Test\SequentialIntegration\SequentialIntegration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
117
+ run : dotnet test `
118
+ --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' `
119
+ --environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" `
120
+ --environment 'PASSWORD=grapefruit' `
121
+ --environment SSL_CERTS_DIR="${{ github.workspace }}\.ci\certs" `
122
+ " ${{ github.workspace }}\p rojects\T est\S equentialIntegration\S equentialIntegration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
118
123
- name : Maybe upload RabbitMQ logs
119
124
if : failure()
120
125
uses : actions/upload-artifact@v4
@@ -182,14 +187,17 @@ jobs:
182
187
- name : Integration Tests
183
188
run : |
184
189
dotnet test \
185
- --environment "RABBITMQ_RABBITMQCTL_PATH=DOCKER:${{ steps.start-rabbitmq.outputs.id }}" \
186
190
--environment 'RABBITMQ_LONG_RUNNING_TESTS=true' \
191
+ --environment "RABBITMQ_RABBITMQCTL_PATH=DOCKER:${{ steps.start-rabbitmq.outputs.id }}" \
187
192
--environment 'RABBITMQ_TOXIPROXY_TESTS=true' \
188
193
--environment 'PASSWORD=grapefruit' \
189
194
--environment SSL_CERTS_DIR="${{ github.workspace }}/.ci/certs" \
190
195
"${{ github.workspace }}/projects/Test/Integration/Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
191
196
- name : Check for errors in RabbitMQ logs
192
197
run : ${{ github.workspace}}/.ci/ubuntu/gha-log-check.sh
198
+ - name : Maybe collect toxiproxy logs
199
+ if : failure()
200
+ run : docker logs rabbitmq-dotnet-client-toxiproxy > ${{ github.workspace }}/.ci/ubuntu/log/toxiproxy.log
193
201
- name : Maybe upload RabbitMQ logs
194
202
if : failure()
195
203
uses : actions/upload-artifact@v4
@@ -219,7 +227,10 @@ jobs:
219
227
- name : Sequential Integration Tests
220
228
run : |
221
229
dotnet test \
230
+ --environment 'RABBITMQ_LONG_RUNNING_TESTS=true' \
222
231
--environment "RABBITMQ_RABBITMQCTL_PATH=DOCKER:${{ steps.start-rabbitmq.outputs.id }}" \
232
+ --environment 'PASSWORD=grapefruit' \
233
+ --environment SSL_CERTS_DIR="${{ github.workspace }}/.ci/certs" \
223
234
"${{ github.workspace }}/projects/Test/SequentialIntegration/SequentialIntegration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
224
235
- name : Maybe upload RabbitMQ logs
225
236
if : failure()
0 commit comments