-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (54 loc) · 1.66 KB
/
Copy pathdeploy-scripts-tests.yml
File metadata and controls
61 lines (54 loc) · 1.66 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: "Deploy scripts tests"
# Runs the deploy-tooling regression suite (`npm run test:deploy-scripts`) on
# PRs and pushes that touch deploy-tooling code, tests, or this workflow.
# Gates merges on the deploy-scripts test suite (including the FR-009 drift
# check and the FR-010/FR-011 Dockerfile lockfile-enforcement test) so a
# regression in the deploy pipeline is caught before it lands on `main`.
#
# Spec: FR-017, SC-011.
on:
pull_request:
paths:
- "deploy/scripts/**"
- "deploy/services/**"
- "deploy/gitops/**"
- "deploy/envs/template.env"
- "deploy/Dockerfile.portal"
- "deploy/Dockerfile.worker"
- "package.json"
- "package-lock.json"
- ".github/workflows/deploy-scripts-tests.yml"
push:
branches:
- main
paths:
- "deploy/scripts/**"
- "deploy/services/**"
- "deploy/gitops/**"
- "deploy/envs/template.env"
- "deploy/Dockerfile.portal"
- "deploy/Dockerfile.worker"
- "package.json"
- "package-lock.json"
- ".github/workflows/deploy-scripts-tests.yml"
concurrency:
group: deploy-scripts-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: deploy-scripts
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
# No npm cache: the deploy-scripts suite is stdlib-only and does
# not need workspace dependencies installed.
- name: Run deploy-scripts tests
run: npm run test:deploy-scripts