Merge pull request #2885 from github/openapi-update-e1b359304d600933e… #3120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Lint OpenAPI Descriptions | |
on: | |
- push | |
jobs: | |
build: | |
name: Lint OpenAPI Descriptions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Yaml Lint | |
uses: karancode/[email protected] | |
with: | |
yamllint_file_or_dir: 'descriptions/**/*.yaml' | |
yamllint_strict: false | |
yamllint_config_filepath: '.yamllint-config.yml' | |
yamllint_comment: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm install | |
- name: JSON Lint | |
run: npm run lint | |
- name: OpenAPI Lint | |
uses: mattpage/[email protected] | |
with: | |
entrypoints: 'descriptions/**/*.yaml' | |
config: '.redocly.yml' |