Skip to content

Fix flaky e2e tests: use waitForReload for view switches, drop retries #24

Fix flaky e2e tests: use waitForReload for view switches, drop retries

Fix flaky e2e tests: use waitForReload for view switches, drop retries #24

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
paths: ['www/**', '.github/workflows/deploy.yml']
pull_request:
branches: [main]
paths: ['www/**', '.github/workflows/deploy.yml']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: 'www/pnpm-lock.yaml'
- name: Remove local-only workspace deps
working-directory: ./www
run: |
echo -e 'packages:\n - .' > pnpm-workspace.yaml
node -e "
const p = require('./package.json');
delete p.devDependencies.scrns;
require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2) + '\n');
"
- name: Install dependencies
working-directory: ./www
run: pnpm install --no-frozen-lockfile
- name: Build
working-directory: ./www
run: pnpm run build
- name: Install Playwright
working-directory: ./www
run: npx playwright install --with-deps chromium
- name: Test
working-directory: ./www
run: pnpm test
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: ./www/dist
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4