Skip to content

Merge pull request #125 from maykinmedia/release/2.2.1 #74

Merge pull request #125 from maykinmedia/release/2.2.1

Merge pull request #125 from maykinmedia/release/2.2.1 #74

Workflow file for this run

name: lint-oas
on:
push:
paths:
- "src/objecttypes/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 ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install spectral
run: npm install -g @stoplight/spectral@5
- name: Run OAS linter
run: spectral lint ./src/objecttypes/api/${{ matrix.version }}/openapi.yaml