From 1513bb3658aea661542d75a1b1702df0b71de2b2 Mon Sep 17 00:00:00 2001 From: Julian Tabel Date: Sat, 21 Feb 2026 17:54:25 +0100 Subject: [PATCH] Split e2e tests into manual workflow_dispatch workflow Co-Authored-By: Claude Opus 4.6 --- ...i--split-e2e-tests-into-manual-workflow.md | 11 ++++++ .github/workflows/ci.yml | 29 +-------------- .github/workflows/e2e.yml | 35 +++++++++++++++++++ 3 files changed, 47 insertions(+), 28 deletions(-) create mode 100644 .beans/nuzlocke-tracker-m8ki--split-e2e-tests-into-manual-workflow.md create mode 100644 .github/workflows/e2e.yml diff --git a/.beans/nuzlocke-tracker-m8ki--split-e2e-tests-into-manual-workflow.md b/.beans/nuzlocke-tracker-m8ki--split-e2e-tests-into-manual-workflow.md new file mode 100644 index 0000000..bc537e5 --- /dev/null +++ b/.beans/nuzlocke-tracker-m8ki--split-e2e-tests-into-manual-workflow.md @@ -0,0 +1,11 @@ +--- +# nuzlocke-tracker-m8ki +title: Split e2e tests into manual workflow +status: completed +type: task +priority: normal +created_at: 2026-02-21T16:53:37Z +updated_at: 2026-02-21T16:54:04Z +--- + +Remove e2e-tests job from ci.yml and create a new e2e.yml workflow with workflow_dispatch trigger only. \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6934e15..319d48b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,31 +68,4 @@ jobs: working-directory: frontend - name: Run tests run: npm test - working-directory: frontend - - e2e-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - persist-credentials: false - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - with: - node-version: "24" - - name: Install dependencies - run: npm ci - working-directory: frontend - - name: Install Playwright browsers - run: npx playwright install --with-deps chromium - working-directory: frontend - - name: Run e2e tests - run: npm run test:e2e - working-directory: frontend - env: - E2E_API_URL: http://192.168.1.10:8100 - - name: Upload Playwright report - if: failure() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - with: - name: playwright-report - path: frontend/playwright-report/ + working-directory: frontend \ No newline at end of file diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..f7fdce5 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,35 @@ +name: E2E Tests + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + e2e-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: "24" + - name: Install dependencies + run: npm ci + working-directory: frontend + - name: Install Playwright browsers + run: npx playwright install --with-deps chromium + working-directory: frontend + - name: Run e2e tests + run: npm run test:e2e + working-directory: frontend + env: + E2E_API_URL: http://192.168.1.10:8100 + - name: Upload Playwright report + if: failure() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: playwright-report + path: frontend/playwright-report/