-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.36 KB
/
Copy pathvalidate-codegen.yml
File metadata and controls
53 lines (45 loc) · 1.36 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
name: Validate Codegen
on:
workflow_dispatch: {}
push:
paths:
- "assets/specs/openapi/**/*.yaml"
- "assets/specs/openapi/**/*.yml"
- "scripts/codegen_harness.sh"
- ".github/workflows/validate-codegen.yml"
pull_request:
paths:
- "assets/specs/openapi/**/*.yaml"
- "assets/specs/openapi/**/*.yml"
- "scripts/codegen_harness.sh"
- ".github/workflows/validate-codegen.yml"
jobs:
codegen:
runs-on: ubuntu-latest
permissions:
contents: read
# Codegen-Only: Prism im Harness deaktivieren (kann auf soft/strict gestellt werden)
env:
PRISM_MODE: "off" # off | soft | strict
OPENAPI_ROOT: "assets/specs/openapi"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Make harness executable
run: chmod +x scripts/codegen_harness.sh
- name: Run codegen harness (SDK build sanity)
run: bash scripts/codegen_harness.sh "$OPENAPI_ROOT"
- name: Upload harness artifacts (SDKs + logs)
if: always()
uses: actions/upload-artifact@v4
with:
name: codegen_harness_artifacts
path: |
.harness_out/**
.harness_logs/**
.harness_tmp/**
if-no-files-found: ignore