Merge pull request #18 from mailtrap/MT-20837-fix-contacts-post-patch… #53
This file contains hidden or 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 OpenAPI Specs | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| paths: | |
| - 'specs/**' | |
| - '.github/workflows/openapi-lint.yml' | |
| - '.spectral.yaml' | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'specs/**' | |
| - '.github/workflows/openapi-lint.yml' | |
| - '.spectral.yaml' | |
| jobs: | |
| lint: | |
| name: Lint OpenAPI files with Spectral | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install Spectral | |
| run: npm install -g @stoplight/spectral-cli | |
| - name: Lint OpenAPI Specs | |
| run: spectral lint "specs/*.openapi.yml" --verbose | |