Skip to content

Commit

Permalink
switch vacuum to npx
Browse files Browse the repository at this point in the history
  • Loading branch information
philsturgeon committed Jan 7, 2025
1 parent e559f80 commit 6b55f5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Lint

on: # yamllint disable-line rule:truthy
pull_request: {}
"on":
pull_request:
branches: [main]
push:
branches: [main]
paths-ignore:
Expand All @@ -23,11 +24,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install vacuum npm package
run: npm install -g vacuum
- name: Install dependencies
run: npm ci

- name: Lint API
run: vacuum report --junit openapi.yaml lint-results
run: npx vacuum report --junit openapi.yaml lint-results

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"dependencies": {
"bump-cli": "^2.8.4"
},
"scripts": {
"microcks": "bump overlay openapi.yaml .microcks/overlays.yaml > .microcks/openapi.yaml"
},
"devDependencies": {
"@apisyouwonthate/style-guide": "^1.5.0",
"@stoplight/spectral-owasp-ruleset": "^1.4.3",
"@microcks/spectral-ruleset": "^0.0.5"
"bump-cli": "^2.8.4",
"@quobix/vacuum": "^0.14.3"
}
}

0 comments on commit 6b55f5b

Please sign in to comment.