calorie-ai-android/.forgejo/workflows/web.yml
Daniel f57c04c989
All checks were successful
Android CI / build (push) Successful in 31s
Web CI / test (push) Successful in 46s
Add web auth and app navigation
2026-05-19 17:59:02 +02:00

34 lines
826 B
YAML

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