Backend CI / type-check, build, tests (push) Successful in 1m0s
Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
777 B
YAML
40 lines
777 B
YAML
name: Backend CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
NODE_VERSION: '22.18.0'
|
|
|
|
jobs:
|
|
checks:
|
|
name: type-check, build, tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
env:
|
|
JWT_SECRET: ci-test-jwt-not-for-production
|
|
NODE_ENV: test
|
|
steps:
|
|
- name: Checkout backend
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: npm
|
|
cache-dependency-path: package-lock.json
|
|
|
|
- name: Install dependencies (npm ci)
|
|
run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run type-check
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Tests (temporary SQLite only)
|
|
run: npm run test
|