Skip to content

export prom metrics from the printer #94

export prom metrics from the printer

export prom metrics from the printer #94

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