Merge pull request #130 from maykinmedia/feature/remove-v1 #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
name: Lint OAS | |
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/v2/openapi.yaml |