From ee8047ac78032f7c4841c187cbfb2aa5c4df0939 Mon Sep 17 00:00:00 2001 From: Jayden Pyles Date: Sat, 10 May 2025 10:46:05 -0500 Subject: [PATCH] fix: add cypress tests to CI [skip ci] --- .github/actions/run-cypress-tests/action.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/actions/run-cypress-tests/action.yaml b/.github/actions/run-cypress-tests/action.yaml index 56d90ea..ebe2fa1 100644 --- a/.github/actions/run-cypress-tests/action.yaml +++ b/.github/actions/run-cypress-tests/action.yaml @@ -43,6 +43,15 @@ runs: echo "Backend failed to be ready after 10 retries" exit 1 + - name: Show backend logs on failure + if: failure() + shell: bash + run: | + echo "== Docker Containers ==" + docker ps -a + echo "== Backend Logs ==" + docker logs $(docker ps -a --filter "name=scraperr_api" --format "{{.Names}}") || echo "Could not get backend logs" + - name: Run Cypress tests shell: bash run: npm run cy:run