52e0f5e375
- Dockerfile for the operator app (same pattern as portal/booking). - Env-driven auth/app base URLs in nuxt.config so one build serves dev (.local) and production (.eu). - Deployment + Service + Ingress on operator.dezky.eu. - Add operator to the typecheck matrix.
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
# CI for the dezky monorepo (Gitea Actions). Installs deps and typechecks each
|
|
# app/service independently — the repo is NOT a single pnpm workspace yet, so
|
|
# every app has its own lockfile and is built from its own directory.
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
typecheck:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- { name: platform-api, dir: services/platform-api }
|
|
- { name: portal, dir: apps/portal }
|
|
- { name: booking, dir: apps/booking }
|
|
- { name: website, dir: apps/website }
|
|
- { name: operator, dir: apps/operator }
|
|
defaults:
|
|
run:
|
|
working-directory: ${{ matrix.target.dir }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: ${{ matrix.target.dir }}/pnpm-lock.yaml
|
|
|
|
- name: Install
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Typecheck
|
|
run: pnpm typecheck
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: services/platform-api
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: services/platform-api/pnpm-lock.yaml
|
|
- name: Install
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Test
|
|
run: pnpm test
|