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 8s
Label PRs based on size / Check PR size (pull_request) Successful in 12s
Claude PR Review / claude-code (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 1m9s
CI / oxlint (pull_request) Successful in 1m16s
CI / eslint (pull_request) Successful in 1m34s
CI / test-build (pull_request) Successful in 1m40s
CI / Docker frontend validation (pull_request) Successful in 2m0s
CI / Docker backend validation (pull_request) Successful in 3m35s
CI / Backend Tests (pull_request) Successful in 4m20s
CI / Checkstyle Main (pull_request) Successful in 4m49s
CI / Playwright (pull_request) Failing after 11m33s
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
Label PRs based on size / Check PR size (pull_request) Successful in 12s
Claude PR Review / claude-code (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 1m9s
CI / oxlint (pull_request) Successful in 1m16s
CI / eslint (pull_request) Successful in 1m34s
CI / test-build (pull_request) Successful in 1m40s
CI / Docker frontend validation (pull_request) Successful in 2m0s
CI / Docker backend validation (pull_request) Successful in 3m35s
CI / Backend Tests (pull_request) Successful in 4m20s
CI / Checkstyle Main (pull_request) Successful in 4m49s
CI / Playwright (pull_request) Failing after 11m33s
This commit is contained in:
parent
551f5bcf2e
commit
325df279c2
8 changed files with 133 additions and 4 deletions
|
@ -165,6 +165,47 @@ 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: source $HOME/.cargo/env && cargo install watchexec-cli --locked
|
||||
- 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
|
||||
env:
|
||||
CI: true
|
||||
working-directory: ./frontend
|
||||
run: source $HOME/.cargo/env && bunx playwright test
|
||||
|
||||
oxlint:
|
||||
runs-on: docker
|
||||
name: oxlint
|
||||
|
|
Reference in a new issue