-
-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (31 loc) · 773 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (31 loc) · 773 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
name: CI
# Gates every pull request and every push to main on the same three checks the watchdog
# runs against the codebase: typecheck, lint, and the test suite. The watchdog catches a
# break after it lands; this stops it landing.
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install
run: npm ci
- name: Typecheck
run: npx tsc --noEmit
- name: Lint
run: npx eslint
- name: Test
run: npm test