Files
quasar/.gitea/workflows/ci.yaml
Workflow config file is invalid. Please check your config file: yaml: line 33: mapping values are not allowed in this context
Benito Rodríguez f4bee94a16 chore: update Prisma and dependencies, add initial migration and tests
- Updated Prisma and @prisma/client to version 6.19.2 in package.json and yarn.lock.
- Added package extensions for @prisma/client in .yarnrc.yml.
- Updated backend README.md for clearer setup instructions.
- Created initial migration for Game, Platform, and related tables in Prisma.
- Added migration lock file for version control.
- Implemented tests for Game model using Vitest, including creation and unique slug constraint checks.
2026-02-08 12:36:36 +01:00

70 lines
1.7 KiB
YAML

# CI pipeline for Quasar (Gitea Actions)
# Jobs: build_and_test (install, prisma generate, lint, unit tests)
# e2e (Playwright, runs on pushes to main)
# Note: `prisma generate` is allowed to continue on error to avoid blocking CI when native engines can't be built.
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DATABASE_URL: file:./backend/dev.db
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Prisma: generate (may fail on some runners)
run: yarn workspace quasar-backend run prisma:generate
continue-on-error: true
- name: Lint (backend)
run: yarn workspace quasar-backend run lint
- name: Run backend unit tests
run: yarn workspace quasar-backend run test:ci
e2e:
runs-on: ubuntu-latest
needs: [build_and_test]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Install Playwright browsers
run: yarn test:install
continue-on-error: true
- name: Run Playwright E2E
run: yarn test:ci
# Metadatos
# Autor: Quasar (investigación automatizada)
# Última actualización: 2026-02-08