Skip to content

chore(deps): update actions/setup-node action to v3.8.2 #2316

chore(deps): update actions/setup-node action to v3.8.2

chore(deps): update actions/setup-node action to v3.8.2 #2316

name: validate-openapi-spec
on:
pull_request:
paths:
- .github/workflows/validate-openapi-spec.yml
- openapi/*
workflow_dispatch:
inputs:
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
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/*.json; do
swagger-cli validate $spec || exit
done