-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 857 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (31 loc) · 857 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
# BKG/ESA are intermittently unreachable from GitHub runners; the
# fetch script skips existing files, so a cache hit is a no-op.
- name: Cache test fixtures
uses: actions/cache@v4
with:
path: test-fixtures
key: test-data-${{ hashFiles('scripts/fetch-test-data.sh') }}
- run: bash scripts/fetch-test-data.sh
- run: pnpm run lint
- run: npx tsc --noEmit
- run: pnpm test
- run: pnpm run build