Skip to content

Bump actions/setup-node from 4.0.3 to 4.0.4 (#104) #88

Bump actions/setup-node from 4.0.3 to 4.0.4 (#104)

Bump actions/setup-node from 4.0.3 to 4.0.4 (#104) #88

name: validate-openapi-spec
on:
pull_request:
paths:
- .github/workflows/validate-openapi-spec.yml
- 'openapi/api.json'
push:
branches:
- main
paths:
- .github/workflows/validate-openapi-spec.yml
- 'openapi/api.json'
workflow_dispatch:
inputs:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '18'
- name: Install our tools
shell: bash
run: |
npm install -g @apidevtools/swagger-cli
- name: Run validation
shell: bash
run: |
for spec in openapi/api.json; do
swagger-cli validate $spec || exit
done