同じファイル内の$refが参照できていなかったので修正 #202
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
lint-definitions: | |
name: Lint OpenAPI definitions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install redocly-cli | |
uses: ./.github/actions/install-redocly-cli | |
- name: Lint OpenAPI yml | |
run: redocly lint ./schema/openapi.yml | |
lint-examples: | |
name: Lint OpenAPI examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install redocly-cli | |
uses: ./.github/actions/install-redocly-cli | |
- name: Bundle OpenAPI yml | |
run: redocly bundle ./schema/openapi.yml -o ./bundled-openapi.yml | |
- name: Install openapi-examples-validator | |
run: npm install -g openapi-examples-validator | |
- name: Lint examples | |
run: openapi-examples-validator ./bundled-openapi.yml |