From 423ad7b7a0593be4755efa98aae9c225c6d5d52a Mon Sep 17 00:00:00 2001 From: Stavros Date: Thu, 16 Jul 2026 17:18:31 +0300 Subject: [PATCH] fix: rabbit fixes --- .github/workflows/e2e.yml | 13 ++++++------- e2e/docker-compose.e2e.yml | 4 ++-- e2e/playwright.config.ts | 1 + e2e/specs/apps.spec.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3aa4105e..dd67328f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7 + with: + persist-credentials: false - name: Setup pnpm uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # ratchet:pnpm/action-setup@v6 @@ -22,19 +24,16 @@ jobs: uses: docker/setup-docker-action@6d7cfa65f60a9dda7b46e5513fa982536f3c9877 # ratchet:docker/setup-docker-action@v5 - name: Install dependencies - run: npm install -g pnpm && pnpm install - with: - working-directory: e2e + run: pnpm ci + working-directory: e2e - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - with: - working-directory: e2e + working-directory: e2e - name: Run Playwright tests run: pnpm exec playwright test - with: - working-directory: e2e + working-directory: e2e - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/upload-artifact@v4 if: ${{ !cancelled() }} diff --git a/e2e/docker-compose.e2e.yml b/e2e/docker-compose.e2e.yml index 280c2c90..99885ce1 100644 --- a/e2e/docker-compose.e2e.yml +++ b/e2e/docker-compose.e2e.yml @@ -1,6 +1,6 @@ services: traefik: - image: traefik:v3.6 + image: traefik:v3.7.8 command: | --api.insecure=true --providers.docker @@ -11,7 +11,7 @@ services: - /var/run/docker.sock:/var/run/docker.sock whoami: - image: traefik/whoami:latest + image: traefik/whoami:v1.11.0 labels: traefik.enable: true traefik.http.routers.whoami.rule: Host(`whoami.127.0.0.1.sslip.io`) diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts index 46c128a9..fc2384ec 100644 --- a/e2e/playwright.config.ts +++ b/e2e/playwright.config.ts @@ -38,6 +38,7 @@ export default defineConfig({ command: 'docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans', url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz', reuseExistingServer: true, + timeout: 5 * 60 * 1000, gracefulShutdown: { signal: 'SIGINT', timeout: 1000, diff --git a/e2e/specs/apps.spec.ts b/e2e/specs/apps.spec.ts index f79d977b..ea77b141 100644 --- a/e2e/specs/apps.spec.ts +++ b/e2e/specs/apps.spec.ts @@ -1,5 +1,5 @@ -import { test, expect } from '@playwright/test'; -import {LoginFixture, LogoutFixture} from "../fixtures/auth.fixtures"; +import {expect, test} from '@playwright/test'; +import {LoginFixture} from "../fixtures/auth.fixtures"; test('should be able to login to app with forward-auth', async ({ page }) => { const loginFixture = new LoginFixture(page);