forked from y-scope/clp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclp-docs-generated-code-checks.yaml
More file actions
39 lines (33 loc) · 1014 Bytes
/
clp-docs-generated-code-checks.yaml
File metadata and controls
39 lines (33 loc) · 1014 Bytes
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
name: "clp-docs-generated-code-checks"
on:
pull_request:
push:
workflow_dispatch:
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
# Cancel in-progress jobs for efficiency
cancel-in-progress: true
jobs:
check-generated:
# Runs only on Ubuntu Jammy (22.04) since the Rust components are only built on this platform.
runs-on: "ubuntu-22.04"
steps:
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"
with:
submodules: "recursive"
- name: "Install task"
shell: "bash"
run: "npm install -g @go-task/cli@3.48.0"
- name: "Generate OpenAPI docs"
shell: "bash"
run: "task codegen:openapi"
- name: "Check if the generated code is the latest"
shell: "bash"
run:
|
git status --porcelain \
docs/src/_static/generated \
docs/src/_static/generated \
| grep . > /dev/null \
&& exit 1 \
|| exit 0