From 4e804a59b6fb07d9b9835761e24528b1cbc39735 Mon Sep 17 00:00:00 2001 From: jesperancinha Date: Sat, 30 Nov 2024 18:23:41 +0100 Subject: [PATCH] Logs fails if dcup fails --- .github/workflows/bridge-logistics-e2e.yml | 20 ++++++++++++++++++++ Makefile | 3 +++ e2e/Makefile | 2 ++ 3 files changed, 25 insertions(+) diff --git a/.github/workflows/bridge-logistics-e2e.yml b/.github/workflows/bridge-logistics-e2e.yml index e961f65b..2b6aecde 100644 --- a/.github/workflows/bridge-logistics-e2e.yml +++ b/.github/workflows/bridge-logistics-e2e.yml @@ -22,6 +22,11 @@ jobs: command: | make dcup-full-action + - name: Cypress Fail! + if: failure() + run: | + make docker-logs + - name: Build Cypress run: make build-npm-cypress @@ -47,6 +52,11 @@ jobs: command: | make dcup-full-action + - name: Cypress Fail! + if: failure() + run: | + make docker-logs + - name: Build Cypress run: make build-npm-cypress @@ -72,6 +82,11 @@ jobs: command: | make dcup-full-action + - name: Cypress Fail! + if: failure() + run: | + make docker-logs + - name: Build Cypress run: make build-npm-cypress @@ -97,6 +112,11 @@ jobs: command: | make dcup-full-action + - name: Cypress Fail! + if: failure() + run: | + make docker-logs + - name: Build Cypress run: make build-npm-cypress diff --git a/Makefile b/Makefile index 136d1ff1..dc1a4edb 100644 --- a/Makefile +++ b/Makefile @@ -240,6 +240,9 @@ docker-prune: docker system prune --all -f docker builder prune -f docker system prune --all --volumes -fl +docker-logs: + cd e2e; \ + make docker-logs install-coverage-python: sudo apt install python3-pip -y sudo pip3 install coverage diff --git a/e2e/Makefile b/e2e/Makefile index 9cf1f475..dc3b2d83 100644 --- a/e2e/Makefile +++ b/e2e/Makefile @@ -18,3 +18,5 @@ cypress-edge: docker-compose -p ${GITHUB_RUN_ID} -f ../docker-compose.yml -f docker-compose.yml up --exit-code-from e2e-edge e2e-edge build: yarn +docker-logs: + docker-compose -p ${GITHUB_RUN_ID} -f ../docker-compose.yml -f docker-compose.yml logs