-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 863 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (26 loc) · 863 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
name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Matches the Dockerfile's node:22-alpine so CI runs the same Node
# version the server actually deploys on.
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm test
# The live RescueGroups integration test hits the real API and needs a
# real key -- it's excluded from CI on purpose (see README "Run the
# live RescueGroups integration test..."), same as it's excluded from
# `npm test` locally. Run `npm run test:live` manually before merging
# any change to search radius, pagination, or the RescueGroups query
# contract.