-
Notifications
You must be signed in to change notification settings - Fork 5.1k
52 lines (43 loc) · 1.12 KB
/
ci.yml
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
name: CI
on:
pull_request:
branches:
- production
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
compile:
name: Compiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- uses: actions/cache/restore@v4
with:
path: |
node_modules/.astro
key: static
- run: npm ci
- run: npm run check
- run: npm run format:core:check
## TODO: content formatting checks
- run: npm run build
env:
NODE_OPTIONS: "--max-old-space-size=4192"
RUN_LINK_CHECK: true
- run: npm run check:worker
- uses: actions/cache/save@v4
with:
path: |
node_modules/.astro
key: static
- name: Check - Validate redirects (infinite loops, sources with fragment)
run: npx tsm bin/validate-redirects.ts
- name: Tests
run: npm run test