@@ -202,77 +202,10 @@ jobs:
202202 - name : Temporary Artifacts Cleanup
203203 run : rm -rf ./artifacts
204204
205- end-to-end-tests :
206- name : End-to-End Testing
207- runs-on : ubuntu-latest
208- needs : [checkstyle, spotbugs]
209- steps :
210- - name : Checkout Repository
211- uses : actions/checkout@v4
212-
213- - name : Run E2E Tests
214- env :
215- GP2GP_SERVER_PORT : " 8080"
216- GP2GP_BASE_URL : " http://gp2gp:8080"
217- GP2GP_AMQP_BROKERS : " amqp://activemq:5672"
218- GP2GP_MONGO_URI : " mongodb://mongodb:27017"
219- GP2GP_MONGO_DATABASE_NAME : " gp2gp"
220- GP2GP_MHS_MOCK_BASE_URL : " http://mock-mhs-adaptor:8081"
221- GP2GP_MHS_OUTBOUND_URL : " http://mock-mhs-adaptor:8081/mock-mhs-endpoint"
222- GP2GP_GPC_GET_URL : " http://gpcc:8090/@ODS_CODE@/STU3/1/gpconnect"
223- GP2GP_LARGE_ATTACHMENT_THRESHOLD : " 31216"
224- GP2GP_LARGE_EHR_EXTRACT_THRESHOLD : " 31216"
225- GP2GP_GPC_CLIENT_MAX_BACKOFF_ATTEMPTS : 0
226- GP2GP_MHS_CLIENT_MAX_BACKOFF_ATTEMPTS : 0
227- GPC_CONSUMER_SERVER_PORT : " 8090"
228- GPC_CONSUMER_SDS_URL : " http://wiremock:8080/spine-directory/"
229- GPC_CONSUMER_SDS_APIKEY : " anykey"
230- GPC_CONSUMER_LOGGING_LEVEL : " DEBUG"
231- GPC_SUPPLIER_ODS_CODE : " XYZ222"
232- GP2GP_LOGGING_LEVEL : " DEBUG"
233- MHS_MOCK_REQUEST_JOURNAL_ENABLED : " true"
234- run : |
235- docker network create commonforgp2gp
236- docker compose -f docker-compose.yml -f docker-compose-e2e-tests.yml up --build --exit-code-from gp2gp-e2e-tests mongodb activemq gp2gp wiremock gpcc gp2gp-e2e-tests
237- working-directory : ./docker
238-
239- - name : Dump Docker Logs
240- if : always()
241- run : |
242- chmod +x dump_docker_logs.sh
243- ./dump_docker_logs.sh
244- working-directory : ./scripts
245- shell : bash
246-
247- - name : Collect Artifacts
248- if : always()
249- run : |
250- mkdir -p artifacts
251- docker cp e2e-tests:/home/gradle/e2e-tests/build/reports ./artifacts
252- cp -r ./scripts/logs ./artifacts
253-
254- - name : Upload Artifacts
255- uses : actions/upload-artifact@v4
256- if : always()
257- with :
258- name : ' End-to-End Test Results & Docker Logs'
259- path : ./artifacts/**
260- compression-level : 9
261-
262- - name : Stop Docker Dependencies
263- if : always()
264- run : |
265- docker compose -f docker-compose.yml -f docker-compose-e2e-tests.yml down
266- docker network rm commonforgp2gp
267- working-directory : ./docker
268-
269- - name : Temporary Artifacts Cleanup
270- run : rm -rf ./artifacts
271-
272205 build-and-publish-docker-images :
273206 name : Build & Publish Docker Images
274207 runs-on : ubuntu-latest
275- needs : [unit-tests, integration-tests, end-to-end-tests ]
208+ needs : [unit-tests, integration-tests]
276209 permissions :
277210 id-token : write
278211 contents : read
0 commit comments