Skip to content

Commit 832f283

Browse files
Test
1 parent 7a2bc50 commit 832f283

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/spectral-lint.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ jobs:
3131
sparse-checkout: |
3232
openapi/
3333
tools/spectral
34-
- name: Setup Node
35-
uses: actions/setup-node@v4
36-
with:
37-
node-version: '20.x'
38-
cache: 'npm'
39-
- name: Install npm dependencies
40-
run: npm install
4134
- name: Fetch OAS file from Dev Branch
4235
run: curl -o dev-oas.yaml "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml"
4336
working-directory: ${{ github.workspace }}
@@ -47,6 +40,11 @@ jobs:
4740
# Path to the OpenAPI spec files and openapi/.raw/v2.yaml
4841
file_glob: openapi/.raw/v2.yaml
4942
spectral_ruleset: tools/spectral/.spectral.yaml #If updated, need to update in MMS too.
43+
- name: IPA validation action
44+
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83
45+
with:
46+
file_glob: dev-oas.yaml
47+
spectral_ruleset: tools/spectral/ipa/ipa-spectral.yaml
5048
- name: IPA validation
5149
run: |
5250
npx spectral lint dev-oas.yaml --ruleset=${{ github.workspace }}/tools/spectral/ipa/ipa-spectral.yaml

0 commit comments

Comments
 (0)