-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch out spectral for vacuum
- Loading branch information
1 parent
87d810c
commit e559f80
Showing
5 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,11 @@ on: # yamllint disable-line rule:truthy | |
branches: [main] | ||
paths-ignore: | ||
- 'README.md' | ||
- 'src/**' | ||
|
||
jobs: | ||
build: | ||
name: Lint | ||
name: API Linting | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
|
@@ -21,15 +22,16 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
# super-linter needs the full git history to get the | ||
# list of files that changed across commits | ||
fetch-depth: 0 | ||
|
||
- name: Super-linter | ||
uses: super-linter/super-linter/[email protected] | ||
env: | ||
DEFAULT_BRANCH: main | ||
FILTER_REGEX_INCLUDE: ^openapi.yaml | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_OPENAPI: true | ||
- name: Install vacuum npm package | ||
run: npm install -g vacuum | ||
|
||
- name: Lint API | ||
run: vacuum report --junit openapi.yaml lint-results | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: | | ||
lint-results-*.xml |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extends: | ||
- spectral:oas | ||
# - "@apisyouwonthate/style-guide" | ||
# - "@stoplight/spectral-owasp-ruleset" | ||
|
||
rules: | ||
# The API doesn't have these (yet?) | ||
# api-home: off | ||
# api-health: off | ||
|
||
oas3-missing-example: off |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruleset: ./.vacuum/ruleset.yaml |