45 lines
888 B
YAML
45 lines
888 B
YAML
name: Production CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate-and-build:
|
|
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: pnpm
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: TypeScript check
|
|
run: pnpm -s exec tsc -p tsconfig.app.json --noEmit
|
|
|
|
- name: Build default tenant
|
|
run: pnpm build
|
|
|
|
- name: Build tis tenant
|
|
run: pnpm build:tis
|
|
|
|
- name: Docker build default
|
|
run: docker compose build app_default
|
|
|
|
- name: Docker build tis
|
|
run: docker compose build app_tis
|