Update OpenAPI Specification #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: konfig-lint-openapi-spec | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
konfig-lint-openapi-spec: # make sure spec passes konfig lint | |
runs-on: ubuntu-latest | |
env: | |
CLI_VERSION: 1.10.0 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
with: | |
# npm cache files are stored in "~/.npm" on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.CLI_VERSION }} | |
- name: Install Konfig CLI | |
run: npm install -g konfig-cli@$CLI_VERSION | |
- name: Initialize Linting Rules | |
run: konfig init -s | |
- name: Lint OpenAPI Spec | |
run: konfig lint |