AI made playwright tests + add them to the github.

This commit is contained in:
KingKDot
2026-07-15 12:12:13 -05:00
parent 22b0eed5e1
commit 8ad81efdc3
16 changed files with 554 additions and 9 deletions
+27 -1
View File
@@ -28,6 +28,7 @@ jobs:
filters: |
server:
- 'Overlord-Server/**'
- '.github/workflows/tests.yml'
client:
- 'Overlord-Client/**'
- 'go.work'
@@ -57,7 +58,32 @@ jobs:
run: bun install --frozen-lockfile
- name: Run server tests
run: bun test ./src
run: bun run test
server-e2e-tests:
needs: changes
if: needs.changes.outputs.server == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
defaults:
run:
working-directory: Overlord-Server
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
- name: Install server dependencies
run: bun install --frozen-lockfile
- name: Install Chromium and system dependencies
run: bunx playwright install --with-deps chromium
- name: Run browser tests
run: bun run test:e2e
client-tests:
needs: changes