diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0408e04..b8e1d92 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -165,6 +165,33 @@ jobs: cd frontend bun run lint + playwright: + runs-on: docker + name: Playwright + needs: changed_files + if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }} + container: + image: git.kjan.de/actions/runner-bun:latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - uses: actions/cache@v4 + working-directory: ./frontend + with: + path: | + frontend/node_modules/ + key: ${{ runner.os }}-bun- + restore-keys: | + ${{ runner.os }}-bun- + - name: Install dependencies + run: | + cd frontend + bun install + - name: Install Playwright Browsers + run: bunx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test + oxlint: runs-on: docker name: oxlint