name: Web CI on: push: branches: [main] pull_request: branches: [main] workflow_dispatch: jobs: test: runs-on: forgejo-local steps: - name: Check out repository run: | git clone "http://forgejo:3000/${GITHUB_REPOSITORY}.git" . git checkout "$GITHUB_SHA" - name: Install Node and browsers run: | apt-get update apt-get install -y --no-install-recommends ca-certificates curl nodejs npm cd web npm install npx playwright install --with-deps chromium - name: Run Playwright tests run: | cd web CI=true \ CALORIE_AI_WEB_USER=admin \ CALORIE_AI_WEB_PASSWORD=test-password \ CALORIE_AI_SESSION_SECRET=test-session-secret \ npm test