Files
gold_land_server/.gitea/workflows/ci.yml
T
safavimohadeseh78andCursor dfb20ca92c
Backend CI / type-check, build, tests (push) Successful in 1m0s
feat: prepare six-lesson trial backend with reliable rewards and operations
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-12 14:35:42 +03:30

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