diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index de8caa0..f130954 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,3 +26,32 @@ jobs: - name: Build run: bun run build + + e2e: + needs: ci + runs-on: docker + container: + image: mcr.microsoft.com/playwright:v1.59.1-noble + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Bun + run: | + curl -fsSL https://bun.sh/install | bash + echo "$HOME/.bun/bin" >> $GITHUB_PATH + + - name: Install dependencies + run: | + export PATH="$HOME/.bun/bin:$PATH" + bun install --frozen-lockfile --ignore-scripts + + - name: Build client + run: | + export PATH="$HOME/.bun/bin:$PATH" + bun run build + + - name: Run E2E tests + run: | + export PATH="$HOME/.bun/bin:$PATH" + CI=true bun run test:e2e