-
Notifications
You must be signed in to change notification settings - Fork 20
69 lines (59 loc) · 2.04 KB
/
Copy pathcodegen.yml
File metadata and controls
69 lines (59 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
name: Codegen — reproducible OpenAPI types
on:
push:
branches: [main]
paths:
- 'specs/**/*.yaml'
- 'conformance/generated/**'
- 'scripts/generate-openapi-types.mjs'
- 'tools/codegen/**'
- 'package.json'
- '.github/workflows/codegen.yml'
pull_request:
branches: [main]
paths:
- 'specs/**/*.yaml'
- 'conformance/generated/**'
- 'scripts/generate-openapi-types.mjs'
- 'tools/codegen/**'
- 'package.json'
- '.github/workflows/codegen.yml'
workflow_dispatch:
concurrency:
group: codegen-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
verify:
name: Verify committed generated types
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: npm
cache-dependency-path: tools/codegen/node/package-lock.json
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: tools/codegen/go.mod
cache-dependency-path: tools/codegen/go.sum
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version-file: tools/codegen/pyproject.toml
python-version: '3.12'
enable-cache: true
cache-dependency-glob: tools/codegen/uv.lock
- name: Install locked Node tooling without lifecycle scripts
working-directory: tools/codegen/node
run: npm ci --ignore-scripts
- name: Reject high and critical Node codegen advisories
working-directory: tools/codegen/node
run: npm audit --audit-level=high
- name: Verify generated types are byte-for-byte current
run: node scripts/generate-openapi-types.mjs --check