Skip to content

Commit

Permalink
Add vacuum linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Feb 6, 2023
1 parent 30608a1 commit 71588bf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,32 @@ jobs:
with:
fetch-depth: '0'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19'

- name: Install Vacuum
run: go install github.com/daveshanley/[email protected]

- name: Run vacuum linter
run: vacuum lint --no-style -d -e contracts/documentation.yaml

- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Install linters
- name: Run redocly and openapi-enforcer linters
run: npm run lint

0 comments on commit 71588bf

Please sign in to comment.