Files
web-app-template/.gitea/workflows/ci.yml
T
JonKazama-Hellion 93f4986204
CI / verify (push) Failing after 29s
Drop npm cache + use 'npm install' (no lock file in template)
setup-node with cache: 'npm' fails because the template ships without
package-lock.json. README documents the path to switch to 'npm ci' once
the downstream repo has a lock file.
2026-05-09 17:30:57 +02:00

34 lines
778 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
# No `cache: 'npm'` here — the template ships without a lock file.
# Once your downstream repo has a package-lock.json from `npm install`,
# add `cache: 'npm'` back and switch the install step to `npm ci`.
- name: Install (use ci once lock file exists)
run: npm install
- name: Prisma generate (validates schema)
run: npx prisma generate
- name: Type-check
run: npm run type-check
- name: Lint
run: npm run lint