-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1016 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (34 loc) · 1016 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
name: CI
# Test + type-check gate on every push/PR. Until now the 1100+ vitest suite
# and tsc only ran locally — releases shipped to npm/GitHub/Homebrew without
# CI ever executing them. This closes that gap; release-binaries.yml runs
# the same suite again as a pre-publish gate.
#
# Uses npm (not bun) because npm is now the canonical package manager for
# the project — package-lock.json is committed and other lockfiles are
# .gitignored. See CONTRIBUTING.md.
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type-check
run: npx tsc --noEmit
- name: Test (vitest)
run: npm test