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 6s
Label PRs based on size / Check PR size (pull_request) Successful in 13s
Claude PR Review / claude-code (pull_request) Successful in 26s
CI / oxlint (pull_request) Successful in 25s
CI / Docker frontend validation (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 1m9s
CI / Docker backend validation (pull_request) Successful in 28s
CI / test-build (pull_request) Successful in 1m26s
CI / Checkstyle Main (pull_request) Successful in 1m32s
CI / Playwright (pull_request) Failing after 32s
CI / Backend Tests (pull_request) Successful in 2m13s

This commit is contained in:
Jan K9f 2025-06-04 11:24:49 +02:00
commit 4fafba5731
13 changed files with 197 additions and 15 deletions

View file

@ -165,6 +165,46 @@ jobs:
cd frontend
bun run lint
playwright:
runs-on: ubuntu-latest
name: Playwright
needs: changed_files
container:
image: git.kjan.de/actions/runner-casino-playwright:latest
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: bun add -g concurrently
- name: Install dependencies
run: |
cd frontend
bun install
- uses: actions/setup-node@v4
with:
node-version: 22.12
working-directory: ./frontend
- name: Run Playwright tests
env:
CI: true
SPRING_PROFILES_ACTIVE: inmemory
working-directory: ./frontend
run: source $HOME/.cargo/env && bunx playwright test
oxlint:
runs-on: docker
name: oxlint