-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added docker compose file for restful ecommerce, updated testng.xml a…
…nd maven.yml to run restfulecommerce tests in github actions
- Loading branch information
1 parent
6a90974
commit 048b4c2
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ jobs: | |
- name: Start restful booker service | ||
run: docker compose -f ./docker-compose-restfulbooker.yml up -d | ||
|
||
- name: Start restful e-commerce service | ||
run: docker compose -f ./docker-compose-ecommerce.yml up -d | ||
|
||
- name: Build Project | ||
run: mvn clean install -DskipTests | ||
|
||
|
@@ -46,6 +49,9 @@ jobs: | |
- name: Stop restful booker service | ||
run: docker compose -f ./docker-compose-restfulbooker.yml down --remove-orphans | ||
|
||
- name: Stop restful ecommerce service | ||
run: docker compose -f ./docker-compose-ecommerce.yml down --remove-orphans | ||
|
||
- name: Test Reporter | ||
uses: dorny/[email protected] | ||
if: always() | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# To execute this docker-compose yml file use `docker compose -f docker-compose-ecommerce.yml up -d` | ||
# Add the `-d` flag at the end for detached execution | ||
# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-ecommerce.yml down` | ||
services: | ||
restful-ecommerce: | ||
image: mfaisalkhatri/restful-ecommerce | ||
ports: | ||
- 3004:3004 |
This file contains 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