Repository navigation
61 lines (51 loc) · 1.8 KB
/
Copy pathremote.yml
File metadata and controls
61 lines (51 loc) · 1.8 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
57
58
59
60
61
name: Remote deployment
# The CDK project under remote/ that `spinloop cloud` drives. It is TypeScript
# rather than Go, so it has its own workflow; the paths filter keeps it off
# pull requests that do not touch it.
on:
push:
branches: [main]
paths:
- "remote/**"
- ".github/workflows/remote.yml"
pull_request:
paths:
- "remote/**"
- ".github/workflows/remote.yml"
workflow_dispatch:
permissions:
contents: read
defaults:
run:
working-directory: remote
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6.1.0
with:
version: 10
- uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
cache-dependency-path: remote/pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm build
# The stack assertions: they synthesize each stack and assert over the
# resulting template (lambdas, IAM scoping, the deploy-config parameter),
# alongside the pure unit tests for the Lambdas' own logic.
- name: Test
run: pnpm test
# Synthesizing the app itself covers what the assertions cannot: bin/app.ts
# wiring, and esbuild bundling every Lambda. No AWS credentials are needed
# — the stacks take their AZs from config rather than looking them up — so
# the context values here are placeholders.
# Invoked directly rather than through `pnpm synth`: pnpm appends extra
# arguments to the end of the script's command line, so the context values
# never reach cdk and the synth fails on the required `runner`.
- name: Synthesize
run: npx cdk synth -c allowedCidr=203.0.113.7/32 -c runner=llamacpp --quiet