chore: Add some tests
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
Label PRs based on size / Check PR size (pull_request) Successful in 13s
Claude PR Review / claude-code (pull_request) Successful in 33s
CI / oxlint (pull_request) Successful in 29s
CI / Docker frontend validation (pull_request) Successful in 23s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 42s
CI / Docker backend validation (pull_request) Successful in 24s
CI / Playwright (pull_request) Failing after 45s
CI / test-build (pull_request) Successful in 1m16s
CI / Checkstyle Main (pull_request) Successful in 1m19s
CI / Backend Tests (pull_request) Successful in 2m1s

This commit is contained in:
Jan K9f 2025-06-04 11:24:49 +02:00
commit aa3bd96881
6 changed files with 106 additions and 2 deletions

View file

@ -165,6 +165,44 @@ jobs:
cd frontend
bun run lint
playwright:
runs-on: ubuntu-latest
name: Playwright
needs: changed_files
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "23"
- name: Install bun
uses: oven-sh/setup-bun@v2
- uses: actions/cache@v4
working-directory: ./frontend
with:
path: |
frontend/node_modules/
key: ${{ runner.os }}-bun-
restore-keys: |
${{ runner.os }}-bun-
- run: apt update && apt install just -y
- run: bun add -g concurrently
- run: apt install watchexec -y
- name: Install dependencies
run: |
cd frontend
bun install
- uses: actions/setup-node@v4
with:
node-version: 22
- run: bunx playwright install --with-deps
working-directory: ./frontend
- name: Run Playwright tests
working-directory: ./frontend
run: bunx playwright test
oxlint:
runs-on: docker
name: oxlint