Files
Momento/.gitea/workflows/ci.yaml
Antigravity 247730aefe
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
fix: provide dummy DATABASE_URL for CI build
2026-05-17 07:56:02 +00:00

46 lines
885 B
YAML

name: CI
on:
push:
branches:
- main
- "*"
pull_request:
branches:
- main
jobs:
ci:
name: Lint, Test & Build
runs-on: ubuntu-24.04
defaults:
run:
working-directory: memento-note
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node 22
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: memento-note/package-lock.json
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Lint
run: npm run lint -- --max-warnings 999
- name: Unit tests
run: npm run test:unit
- name: Build
env:
DATABASE_URL: "postgresql://dummy:dummy@localhost:5432/dummy"
run: npm run build