mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
chore: update E2E tests workflow to capture logs on cancellation and add shared volume for backend services
This commit is contained in:
parent
c052fc9304
commit
315329f344
2 changed files with 9 additions and 2 deletions
4
.github/workflows/e2e-tests.yml
vendored
4
.github/workflows/e2e-tests.yml
vendored
|
|
@ -130,7 +130,7 @@ jobs:
|
|||
|
||||
# ─── Failure diagnostics ───────────────────────────────────────────
|
||||
- name: Dump backend stack logs on failure
|
||||
if: failure()
|
||||
if: ${{ failure() || cancelled() }}
|
||||
run: |
|
||||
mkdir -p ./compose-logs
|
||||
docker compose -f docker/docker-compose.e2e.yml logs --no-color --timestamps \
|
||||
|
|
@ -160,7 +160,7 @@ jobs:
|
|||
retention-days: 14
|
||||
|
||||
- name: Upload backend stack logs
|
||||
if: failure()
|
||||
if: ${{ failure() || cancelled() }}
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: backend-stack-logs
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ services:
|
|||
environment:
|
||||
<<: *backend-env
|
||||
SERVICE_ROLE: api
|
||||
volumes:
|
||||
- shared_temp:/shared_tmp
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
|
|
@ -147,6 +149,8 @@ services:
|
|||
environment:
|
||||
<<: *backend-env
|
||||
SERVICE_ROLE: worker
|
||||
volumes:
|
||||
- shared_temp:/shared_tmp
|
||||
depends_on:
|
||||
backend: { condition: service_healthy }
|
||||
healthcheck:
|
||||
|
|
@ -172,3 +176,6 @@ networks:
|
|||
# redis stay off this network entirely.
|
||||
ingress:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
shared_temp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue