Skip to content

Commit

Permalink
ci: lint openapi examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Dec 26, 2022
1 parent a8a8466 commit 36ed4c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ jobs:
uses: ./.github/actions/redocly-cli
with:
command-args: lint /spec/schema/openapi.yml
lint-examples:
name: Lint examples of OpenAPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint
uses: ./.github/actions/redocly-cli
with:
command-args: bundle /spec/schema/openapi.yml -o /spec/bundled-openapi.ym
- name: Install a lib
run: npm install -g openapi-examples-validator
- name: Lint examples
run: openapi-examples-validator ./bundled-openapi.yml

0 comments on commit 36ed4c3

Please sign in to comment.