diff --git a/.github/workflows/lint-openapi.yml b/.github/workflows/lint-openapi.yml new file mode 100644 index 0000000..35d12cc --- /dev/null +++ b/.github/workflows/lint-openapi.yml @@ -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