-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (72 loc) · 2.04 KB
/
Copy pathci.yml
File metadata and controls
89 lines (72 loc) · 2.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
host-agent:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: host-agent/package-lock.json
- name: Ticket vectors match the generator
run: python3 tests/vectors/generate.py --check
- name: Install
working-directory: host-agent
run: npm ci --no-fund --no-audit
- name: Typecheck
working-directory: host-agent
run: npm run typecheck
- name: Test
working-directory: host-agent
run: npm test
- name: Build bundle
working-directory: host-agent
run: npm run build
image:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: docker/setup-buildx-action@v3
- name: Docker build (no push)
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: false
platforms: linux/amd64
chart:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: azure/setup-helm@v4
with:
version: v3.16.4
- name: Lint chart
run: helm lint deploy
- name: Render chart
run: helm template computer-host deploy -f deploy/ci/values-ci.yaml > /tmp/computer-host.yaml
- name: Required objects are present
run: |
set -euo pipefail
for kind in Secret PersistentVolumeClaim Deployment Service Ingress; do
grep -q "^kind: ${kind}$" /tmp/computer-host.yaml
done
grep -q "COMPUTER_TICKET_SECRET" /tmp/computer-host.yaml
grep -q "path: /__healthz" /tmp/computer-host.yaml