Skip to content

Commit ddfe821

Browse files
author
Valentin Schneider-Lunitz
committed
ci: update workflow to use swagger-cli for OpenAPI validation
1 parent 03c795c commit ddfe821

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Lint and validate OpenAPI specs
2+
23
on:
34
- push
45
- pull_request_target
6+
57
jobs:
68
lint:
79
name: Lint OpenAPI definition
@@ -14,6 +16,7 @@ jobs:
1416
with:
1517
github_token: ${{ secrets.GITHUB_TOKEN }}
1618
file: openapi/workflow_execution_service.openapi.yaml
19+
1720
diff:
1821
name: Show OpenAPI differences relative to target branch
1922
runs-on: ubuntu-latest
@@ -41,7 +44,10 @@ jobs:
4144
steps:
4245
- name: Check out head branch
4346
uses: actions/checkout@v3
44-
- name: Run OpenAPI Validate Action
45-
uses: char0n/swagger-editor-validate@v1
46-
with:
47-
definition-file: openapi/workflow_execution_service.openapi.yaml
47+
48+
# Replace Puppeteer-based validation with swagger-cli
49+
- name: Install swagger-cli
50+
run: npm install -g @apidevtools/swagger-cli
51+
52+
- name: Validate OpenAPI definition
53+
run: swagger-cli validate openapi/workflow_execution_service.openapi.yaml

0 commit comments

Comments
 (0)