Bump bootsnap from 1.19.0 to 1.20.1 #794
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: Swagger | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| swagger: | |
| runs-on: ubuntu-latest | |
| name: Validate Spec | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install validation tools | |
| run: | | |
| npm install --no-save @redocly/cli | |
| - name: Validate Swagger schema | |
| run: | | |
| npx @redocly/cli lint app/assets/swagger/swagger.json --extends=minimal | |
| - name: Display OpenAPI information | |
| run: | | |
| node -e " | |
| const fs = require('fs'); | |
| try { | |
| const apiSpec = JSON.parse(fs.readFileSync('app/assets/swagger/swagger.json', 'utf8')); | |
| console.log('API name: %s, Version: %s, OpenAPI Version: %s', | |
| apiSpec.info.title, | |
| apiSpec.info.version, | |
| apiSpec.openapi); | |
| console.log('Validation successful'); | |
| } catch (err) { | |
| console.error('Error reading API spec:', err.message); | |
| process.exit(1); | |
| } | |
| " |