chore: bump prettier from 3.6.0 to 3.6.1 (#789) #1257
This file contains hidden or 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: Spectral Lint Commited OpenAPI Spec | |
# Trigger the workflow on pull requests and pushes to the main branch | |
on: | |
pull_request: | |
paths: | |
- 'tools/spectral/**' | |
- 'openapi/**.yaml' | |
- 'package.json' | |
push: | |
branches: | |
- main | |
paths: | |
- 'tools/spectral/**' | |
- 'openapi/**.yaml' | |
- 'package.json' | |
jobs: | |
spectral-lint: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
with: | |
sparse-checkout: | | |
openapi/ | |
tools/spectral | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Fetch OAS file from Dev Branch | |
run: curl -O "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml" | |
working-directory: ${{ github.workspace }} | |
- name: Spectral action | |
uses: stoplightio/spectral-action@577bade2d6e0eeb50528c94182a5588bf961ae8f | |
with: | |
# Path to the OpenAPI spec files and openapi/.raw/v2.yaml | |
file_glob: openapi/.raw/v2.yaml | |
spectral_ruleset: tools/spectral/.spectral.yaml #If updated, need to update in MMS too. | |
- name: IPA validation action | |
run: npx spectral lint v2.yaml --ruleset=./tools/spectral/ipa/ipa-spectral.yaml | |