Skip to content

[#351] PR feedback #121

[#351] PR feedback

[#351] PR feedback #121

Workflow file for this run

name: lint-oas
on:
push:
paths:
- "src/objects/api/v*/openapi.yaml"
- .github/workflows/lint-oas.yml
branches:
- '**'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 'v1', 'v2' ]
name: Run with version v${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install spectral
run: npm install -g @stoplight/spectral@5
- name: Run OAS linter
run: spectral lint ./src/objects/api/${{ matrix.version }}/openapi.yaml