34 lines
998 B
YAML
34 lines
998 B
YAML
name: Backend quality
|
|
on:
|
|
push:
|
|
branches: [main, 'feat/**', 'fix/**']
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
postgres:
|
|
image: postgres:17
|
|
env:
|
|
POSTGRES_USER: mani
|
|
POSTGRES_PASSWORD: ci_only_password
|
|
POSTGRES_DB: mani_ci
|
|
options: >-
|
|
--health-cmd "pg_isready -U mani -d mani_ci"
|
|
--health-interval 5s --health-timeout 5s --health-retries 10
|
|
env:
|
|
DATABASE_URL: postgresql://mani:ci_only_password@postgres:5432/mani_ci
|
|
TEST_DATABASE_URL: postgresql://mani:ci_only_password@postgres:5432/mani_ci
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
- run: npm install --global pnpm@11.19.0
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm security:audit
|
|
- run: pnpm db:generate
|
|
- run: node scripts/verify-migrations.mjs
|
|
- run: pnpm check
|