Skip to content

Commit

Permalink
Configure GestaoHospital SUT in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Jul 12, 2024
1 parent cc7d2a9 commit 5f6fa11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/')))
strategy:
matrix:
scope: [Petstore, Market]
scope: [Petstore, Market, GestaoHospital]
fail-fast: false

steps:
Expand Down Expand Up @@ -49,6 +49,15 @@ jobs:
chmod u+x ../setup/wait-container-ready.sh
../setup/wait-container-ready.sh db "ready for start up"
../setup/wait-container-ready.sh market-rest "Started RestApplication"
- name: Launch GestaoHospital
if: ${{ matrix.scope == 'GestaoHospital' }}
working-directory: ./sut-gestaoHospital
run: |
mvn package -DskipTests=true -ntp
docker-compose up -d --force-recreate --build
chmod u+x ../setup/wait-container-ready.sh
../setup/wait-container-ready.sh mongodb "HospitalDB.product_collection"
../setup/wait-container-ready.sh gestaohospital "Started GestaohospitalarApplication"
- run: docker ps

- name: Rules cache
Expand All @@ -70,6 +79,10 @@ jobs:
run: |
docker logs market-rest > st-tdg-test/target/docker-market-server.log
docker logs db > st-tdg-test/target/docker-market-db.log
- if: ${{ matrix.scope == 'GestaoHospital' }}
run: |
docker logs gestaohospital > st-tdg-test/target/docker-gestaoHospital-server.log
docker logs mongodb > st-tdg-test/target/docker-gestaoHospital-db.log
- name: Generate report checks
if: always()
Expand Down
2 changes: 1 addition & 1 deletion setup/run-gestaoHospital.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo on
SET GESTAOHOSPITAL_DIR=%~dp0%\..\swagger-gestaoHospital-fork
SET GESTAOHOSPITAL_DIR=%~dp0%\..\sut-gestaoHospital
cd %GESTAOHOSPITAL_DIR%
cmd /c mvn package -DskipTests=true
docker-compose down
Expand Down

0 comments on commit 5f6fa11

Please sign in to comment.