Skip to content

Commit 93e7ca7

Browse files
CLOUDP-294708: Add IPA validation to optional spec validations workflow (#364)
1 parent 95064a2 commit 93e7ca7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/optional-spec-validations.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
name: openapi-foas-${{ inputs.env }}
4040
github-token: ${{ secrets.api_bot_pat }}
4141
run-id: ${{ github.run_id }}
42+
- name: Run IPA validation
43+
id: ipa-spectral-validation
44+
run: |
45+
spectral lint openapi-foas.json --ruleset=./tools/spectral/ipa/ipa-spectral.yaml
4246
- name: Validate the FOAS can be used to generate Postman collection
4347
id: spectral-validation
4448
env:
@@ -49,7 +53,7 @@ jobs:
4953
make convert_to_collection
5054
npx -- @stoplight/spectral-cli@"${SPECTRAL_VERSION}" lint ./tmp/collection.json --ruleset=./validation/spectral.yaml
5155
popd
52-
- name: Create Issue
56+
- name: Create Issue - Postman validation Failed
5357
if: ${{ failure() && steps.spectral-validation.outcome == 'failure' }}
5458
uses: imjohnbo/issue-bot@572eed14422c4d6ca37e870f97e7da209422f5bd
5559
env:
@@ -59,3 +63,13 @@ jobs:
5963
title: "(${{env.target_env}}) Optional Postman validation failed :scream_cat:"
6064
body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
6165
token: ${{ secrets.GITHUB_TOKEN }}
66+
- name: Create Issue - IPA validation Failed
67+
if: ${{ failure() && steps.ipa-spectral-validation.outcome == 'failure' }}
68+
uses: imjohnbo/issue-bot@572eed14422c4d6ca37e870f97e7da209422f5bd
69+
env:
70+
target_env: ${{ inputs.env }}
71+
with:
72+
labels: failed-release
73+
title: "(${{env.target_env}}) Optional IPA validation failed :scream_cat:"
74+
body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
75+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)