41044 - new OpenApi #322
Workflow file for this run
This file contains hidden or 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: validate specification | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| - stable | |
| jobs: | |
| validate-specification: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install redoc | |
| run: | | |
| npm install -g @redocly/cli | |
| redocly build-docs index.yml | |
| - name: Revert changes | |
| if: ${{ false }} | |
| run: | | |
| npm install -g @openapitools/openapi-generator-cli | |
| openapi-generator-cli validate --recommend -i index.yml |