-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.56 KB
/
ci.yml
File metadata and controls
61 lines (48 loc) · 1.56 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
# Pre-merge quality gate for oc-docs. Vercel handles production deploys
# on push to main; this workflow runs the checks Vercel doesn't
# (type-check, format, lint, build). Critical for the docs site since
# Phase 3.5 auto-PRs from oc-packages release tags land MDX changes
# here that should pass type-check + build before merging.
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
# Node 22 — chevrotain (transitive dep) requires >=22
node-version: '24'
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Type check
run: yarn type-check
- name: Format check
run: yarn format:check
- name: Lint
run: yarn lint
build:
name: Build
runs-on: ubuntu-latest
needs: quality
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
# Node 22 — chevrotain (transitive dep) requires >=22
node-version: '24'
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn build