File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 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 }}
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
You can’t perform that action at this time.
0 commit comments