-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 987 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (32 loc) · 987 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
# Runs on GitHub Actions.
on:
push:
pull_request:
# Least privilege: this workflow only reads the repo to type-check, test, and build it.
permissions:
contents: read
jobs:
build-and-test:
# Build is OS-independent (Vite + tsc), so a single Linux runner is enough.
# The matrix backs up the "Node 18+" support claim in CONTRIBUTING.md.
strategy:
fail-fast: false
matrix:
node: [20, 22]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Type-check
run: npx tsc --noEmit
- name: Test
run: npm test
- name: Build (multi-file + single-file)
run: npm run build