-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.48 KB
/
Copy pathnode-services.yml
File metadata and controls
56 lines (49 loc) · 1.48 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: node-services
on:
push:
branches: [main]
paths:
- "worker/**"
- "feed-worker/**"
- "analytics/**"
- "bq-sink/**"
- ".github/workflows/node-services.yml"
pull_request:
paths:
- "worker/**"
- "feed-worker/**"
- "analytics/**"
- "bq-sink/**"
- ".github/workflows/node-services.yml"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service: [worker, feed-worker, analytics, bq-sink]
defaults:
run:
working-directory: ${{ matrix.service }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: ${{ matrix.service }}/package-lock.json
- name: Install
run: npm ci
- name: Type-check
run: npx tsc --noEmit
# Runs whichever tests exist today (`npm test` is a no-op stub for
# services that don't have a suite yet) — becomes a real gate as each
# service picks up coverage.
- name: Test
run: npm test --if-present
# Report-only for now: doesn't fail the build on every moderate CVE,
# matching this project's existing judgment-based (not blanket-force)
# approach to dependency vulnerabilities. Revisit once a baseline of
# accepted/fixed findings is established per service.
- name: Audit (report only)
run: npm audit --audit-level=high || true