From 2a4deacff17f64f02131c1a98ab4399c92b24d08 Mon Sep 17 00:00:00 2001 From: Lovisa Berggren Date: Thu, 16 Jan 2025 15:43:09 +0000 Subject: [PATCH 1/4] CLOUDP-295191: Fix optional spec validation - IPA validation --- .github/workflows/optional-spec-validations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/optional-spec-validations.yml b/.github/workflows/optional-spec-validations.yml index fe81bc4151..f163679d95 100644 --- a/.github/workflows/optional-spec-validations.yml +++ b/.github/workflows/optional-spec-validations.yml @@ -42,7 +42,7 @@ jobs: - name: Run IPA validation id: ipa-spectral-validation run: | - spectral lint openapi-foas.json --ruleset=./tools/spectral/ipa/ipa-spectral.yaml + npx spectral lint openapi-foas.json --ruleset=./tools/spectral/ipa/ipa-spectral.yaml - name: Validate the FOAS can be used to generate Postman collection id: spectral-validation env: From 7256455acc33bee326892260544ac4ec3c939994 Mon Sep 17 00:00:00 2001 From: Lovisa Berggren Date: Thu, 16 Jan 2025 15:52:14 +0000 Subject: [PATCH 2/4] CLOUDP-295191: Test --- .github/workflows/code-health-tools.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/code-health-tools.yml b/.github/workflows/code-health-tools.yml index 5ac28e147a..9bab9f7fcf 100644 --- a/.github/workflows/code-health-tools.yml +++ b/.github/workflows/code-health-tools.yml @@ -54,6 +54,7 @@ jobs: with: sparse-checkout: | .github + openapi tools/spectral/ipa - name: Setup Node uses: actions/setup-node@v4 @@ -65,6 +66,9 @@ jobs: - name: Run Jest tests run: | npm run test + - name: Run IPA + run: | + spectral lint ./openapi/v2.yaml --ruleset=./tools/spectral/ipa/ipa-spectral.yaml lint: runs-on: ubuntu-latest steps: From fe69ce61e7317f3912fe40e3a10d36ae24bad582 Mon Sep 17 00:00:00 2001 From: Lovisa Berggren Date: Thu, 16 Jan 2025 15:53:04 +0000 Subject: [PATCH 3/4] CLOUDP-295191: Test --- .github/workflows/code-health-tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-health-tools.yml b/.github/workflows/code-health-tools.yml index 9bab9f7fcf..56ae5544a4 100644 --- a/.github/workflows/code-health-tools.yml +++ b/.github/workflows/code-health-tools.yml @@ -68,7 +68,7 @@ jobs: npm run test - name: Run IPA run: | - spectral lint ./openapi/v2.yaml --ruleset=./tools/spectral/ipa/ipa-spectral.yaml + npx spectral lint ./openapi/v2.yaml --ruleset=./tools/spectral/ipa/ipa-spectral.yaml lint: runs-on: ubuntu-latest steps: From 4fdb793ee5f86ba7f0176a653098939d0e4e1f45 Mon Sep 17 00:00:00 2001 From: Lovisa Berggren Date: Thu, 16 Jan 2025 15:54:18 +0000 Subject: [PATCH 4/4] CLOUDP-295191: Revert test --- .github/workflows/code-health-tools.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/code-health-tools.yml b/.github/workflows/code-health-tools.yml index 56ae5544a4..5ac28e147a 100644 --- a/.github/workflows/code-health-tools.yml +++ b/.github/workflows/code-health-tools.yml @@ -54,7 +54,6 @@ jobs: with: sparse-checkout: | .github - openapi tools/spectral/ipa - name: Setup Node uses: actions/setup-node@v4 @@ -66,9 +65,6 @@ jobs: - name: Run Jest tests run: | npm run test - - name: Run IPA - run: | - npx spectral lint ./openapi/v2.yaml --ruleset=./tools/spectral/ipa/ipa-spectral.yaml lint: runs-on: ubuntu-latest steps: