Skip to content

Commit 4d8166f

Browse files
Test
1 parent e4cc412 commit 4d8166f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/spectral-lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install npm dependencies
3939
run: npm install
4040
- name: Fetch OAS file from Dev Branch
41-
run: curl -O "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml"
41+
run: curl -o dev-oas.yaml "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml"
4242
working-directory: ${{ github.workspace }}
4343
- name: Spectral action
4444
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83
@@ -51,3 +51,7 @@ jobs:
5151
with:
5252
file_glob: ${{ github.workspace }}//v2.yaml
5353
spectral_ruleset: tools/spectral/ipa/ipa-spectral.yaml
54+
- name: IPA validation
55+
run: |
56+
npx spectral lint dev-oas.yaml --ruleset=${{ github.workspace }}/tools/spectral/ipa/ipa-spectral.yaml
57+

0 commit comments

Comments
 (0)