Skip to content

Commit

Permalink
ensure correct tool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic committed Feb 18, 2022
1 parent 2654fa5 commit bb0926f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm i -g @apidevtools/swagger-cli@4 @stoplight/spectral-cli@6
- run: npm i -g @apidevtools/swagger-cli@4 @stoplight/spectral-cli@6.2.0
- run: spectral --version

- name: Lint spec
run: spectral lint ./beacon-node-oapi.yaml
Expand Down
1 change: 0 additions & 1 deletion .spectral.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extends: [["spectral:oas", "all"]]
formats: ["oas3"]
rules:
operation-default-response: off
operation-singular-tag: off
oas3-parameter-description: off
contact-properties: off
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Api spec is checked for lint errors before merge.

To run lint locally, install linter with
```
npm install -g @stoplight/spectral
npm install -g @stoplight/spectral-cli@6.2.1
# OR
yarn global add @stoplight/spectral
yarn global add @stoplight/spectral-cli@6.2.1
```
and run lint with
```
Expand Down

0 comments on commit bb0926f

Please sign in to comment.