Skip to content

Commit 9305b47

Browse files
authored
Merge pull request #44 from openai/add-validator
add openapi spec validator
2 parents 8b9c21f + a96838a commit 9305b47

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Validate OpenAPI definition
2+
on: [push]
3+
4+
jobs:
5+
test_swagger_editor_validator_service:
6+
runs-on: ubuntu-latest
7+
name: Swagger Editor Validator Service
8+
9+
# Service containers to run with `runner-job`
10+
services:
11+
# Label used to access the service container
12+
swagger-editor:
13+
# Docker Hub image
14+
image: swaggerapi/swagger-editor
15+
ports:
16+
# Maps port 8080 on service container to the host 80
17+
- 80:8080
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Validate OpenAPI definition
22+
uses: char0n/swagger-editor-validate@v1
23+
with:
24+
swagger-editor-url: http://localhost/
25+
definition-file: openapi.yaml

0 commit comments

Comments
 (0)