chore: switch out spectral for vacuum #150
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
name: Lint | |
"on": | |
pull_request: {} | |
push: | |
branches: [main] | |
paths-ignore: | |
- 'README.md' | |
- 'src/**' | |
jobs: | |
build: | |
name: API Linting | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
statuses: write | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint API | |
run: npm exec vacuum report --junit openapi.yaml lint-results | |
- name: Write out Unit Test report annotation for forked repo | |
if: success() || failure() | |
uses: mikepenz/action-junit-report@v5 | |
with: | |
report_paths: lint-results-*.xml | |
check_name: API Lint Results | |
comment: true |