templates2.Base.Next/.github/workflows/ci.yml
w4c-templates 219be916cb
Some checks are pending
CI / quality (push) Waiting to run
chore(template): publish Base.Next
2026-10-11 23:23:30 +03:00

34 lines
741 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
env:
DATABASE_URL: "file:./ci.db"
NEXT_PUBLIC_SITE_URL: "http://localhost:3000"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run db:setup
- run: npm test
- run: npm run build
- name: e2e smoke
run: |
npm start &
for i in $(seq 1 60); do
if curl -sf http://127.0.0.1:3000/api/health >/dev/null; then break; fi
sleep 1
done
npm run test:e2e