Skip to content

Commit

Permalink
Add linters to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Aug 14, 2024
1 parent 8ebb8f8 commit 2aa3991
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 141 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,23 @@ jobs:
- name: Install Redocly
run: npm install -g @redocly/cli@latest

- name: Lint OpenAPI
- name: Lint OpenAPI with Redocly
run: redocly lint openapi.yaml

- name: Install spectral
run: npm install -g @stoplight/spectral-cli

- name: Lint OpenAPI with Spectral
run: spectral lint openapi.yaml

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install yamllint
run: pip install --user yamllint

- name: Yamllint
run: yamllint openapi.yaml
1 change: 1 addition & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends: ["spectral:oas", "spectral:asyncapi"]
Loading

0 comments on commit 2aa3991

Please sign in to comment.