-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 935 Bytes
/
Copy pathci.yml
File metadata and controls
45 lines (36 loc) · 935 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
36
37
38
39
40
41
42
43
44
45
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check out sqlc docs
uses: actions/checkout@v4
with:
repository: sqlc-dev/sqlc
path: .cache/sqlc
sparse-checkout: docs
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Ingest
run: node scripts/ingest.mjs --src .cache/sqlc/docs
- name: Build
run: npm run build
- name: Type check
run: npm run types:check
# Downloadable preview of the built site. Serve it locally with e.g.
# `python3 -m http.server` and open /en/latest/.
- uses: actions/upload-artifact@v4
with:
name: site-preview
path: |
out/
out-root/
retention-days: 7