Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/actions/lint-and-validate-specification/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ runs:
with:
node-version: "20"

- name: Install dependencies
- name: Install system dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y make

- name: Install Spectral, Swagger CLI, and Redocly CLI
- name: Install CLI tools locally
shell: bash
run: |
npm install -g @stoplight/spectral-cli swagger-cli @redocly/cli
npm ci

- name: Construct OpenAPI Spec
shell: bash
Expand All @@ -32,8 +32,9 @@ runs:
- name: Lint OpenAPI Spec with Spectral
shell: bash
run: |
spectral lint --ruleset .spectral.yaml build/specification/${{ inputs.apim-env }}/eligibility-signposting-api.yaml
npx spectral lint --ruleset .spectral.yaml build/specification/${{ inputs.apim-env }}/eligibility-signposting-api.yaml

- name: Validate OpenAPI Spec with Swagger CLI
shell: bash
run: swagger-cli validate build/specification/${{ inputs.apim-env }}/eligibility-signposting-api.yaml
run: |
npx swagger-cli validate build/specification/${{ inputs.apim-env }}/eligibility-signposting-api.yaml
Loading
Loading