Skip to content

Commit

Permalink
ci: run OpenAPI lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Dec 9, 2022
1 parent cb024d5 commit c0d3dff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint-openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint OpenAPI files
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- run: npm install -g redoc-cli
- name: Bundle
run: redoc-cli bundle schema/openapi.yml --output bundled.yml
- name: Lint
run: redoc-cli lint bundled.yaml

0 comments on commit c0d3dff

Please sign in to comment.