33 lines
604 B
YAML
33 lines
604 B
YAML
|
|
name: CI
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches: [main]
|
||
|
|
pull_request:
|
||
|
|
branches: [main]
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
validate:
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
steps:
|
||
|
|
- name: Checkout
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- name: Set up Node
|
||
|
|
uses: actions/setup-node@v4
|
||
|
|
with:
|
||
|
|
node-version: 22
|
||
|
|
|
||
|
|
- name: Install + type-check + build frontend
|
||
|
|
run: |
|
||
|
|
npm ci
|
||
|
|
npx tsc --noEmit
|
||
|
|
npm run build
|
||
|
|
|
||
|
|
- name: Install + type-check + build backend
|
||
|
|
working-directory: backend
|
||
|
|
run: |
|
||
|
|
npm ci
|
||
|
|
npx tsc --noEmit
|
||
|
|
npm run build
|