-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 958 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (28 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- run: yarn install --frozen-lockfile
# `zitejs check` is not usable in CI: on an app this size its endpoint
# bundler overflows a 1 MB stdout buffer and exits non-zero with no error.
# These are the three things it runs, split out so a failure is a real one.
- name: Type-check
run: |
npx tsc --noEmit -p apps/learning-management/tsconfig.app.json
npx tsc --noEmit -p apps/learner-portal/tsconfig.app.json
- name: Bundle endpoints
run: node .github/scripts/check-endpoint-bundles.mjs
- name: Build
run: |
yarn workspace @project/learning-management build
yarn workspace @project/learner-portal build