Skip to content

Commit 4e804a5

Browse files
committed
Logs fails if dcup fails
1 parent ffb6fb5 commit 4e804a5

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.github/workflows/bridge-logistics-e2e.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
command: |
2323
make dcup-full-action
2424
25+
- name: Cypress Fail!
26+
if: failure()
27+
run: |
28+
make docker-logs
29+
2530
- name: Build Cypress
2631
run: make build-npm-cypress
2732

@@ -47,6 +52,11 @@ jobs:
4752
command: |
4853
make dcup-full-action
4954
55+
- name: Cypress Fail!
56+
if: failure()
57+
run: |
58+
make docker-logs
59+
5060
- name: Build Cypress
5161
run: make build-npm-cypress
5262

@@ -72,6 +82,11 @@ jobs:
7282
command: |
7383
make dcup-full-action
7484
85+
- name: Cypress Fail!
86+
if: failure()
87+
run: |
88+
make docker-logs
89+
7590
- name: Build Cypress
7691
run: make build-npm-cypress
7792

@@ -97,6 +112,11 @@ jobs:
97112
command: |
98113
make dcup-full-action
99114
115+
- name: Cypress Fail!
116+
if: failure()
117+
run: |
118+
make docker-logs
119+
100120
- name: Build Cypress
101121
run: make build-npm-cypress
102122

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ docker-prune:
240240
docker system prune --all -f
241241
docker builder prune -f
242242
docker system prune --all --volumes -fl
243+
docker-logs:
244+
cd e2e; \
245+
make docker-logs
243246
install-coverage-python:
244247
sudo apt install python3-pip -y
245248
sudo pip3 install coverage

e2e/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ cypress-edge:
1818
docker-compose -p ${GITHUB_RUN_ID} -f ../docker-compose.yml -f docker-compose.yml up --exit-code-from e2e-edge e2e-edge
1919
build:
2020
yarn
21+
docker-logs:
22+
docker-compose -p ${GITHUB_RUN_ID} -f ../docker-compose.yml -f docker-compose.yml logs

0 commit comments

Comments
 (0)