chore: Add some tests
Some checks failed
CI / Get Changed Files (pull_request) Successful in 7s
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
Label PRs based on size / Check PR size (pull_request) Successful in 14s
Claude PR Review / claude-code (pull_request) Successful in 28s
CI / oxlint (pull_request) Successful in 28s
CI / Docker frontend validation (pull_request) Successful in 26s
CI / eslint (pull_request) Successful in 38s
CI / prettier (pull_request) Successful in 41s
CI / Docker backend validation (pull_request) Successful in 27s
CI / test-build (pull_request) Successful in 1m14s
CI / Checkstyle Main (pull_request) Successful in 1m23s
CI / Playwright (pull_request) Failing after 1m5s
CI / Backend Tests (pull_request) Successful in 2m6s

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

View file

@ -165,6 +165,45 @@ 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: curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: cargo install --locked watchexec-cli
- 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