Skip to content
Merged
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
32 changes: 21 additions & 11 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,30 @@ jobs:
run: npm ci

- name: Run linters
uses: wearerequired/lint-action@v1
run: npm run lint

openapi-lint:
name: Run openapi-lint
runs-on: ubuntu-latest
if: ${{ inputs.enableOpenApiCheck == true }}

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
with:
github_token: ${{ secrets.github_token }}
# Enable linters
eslint: true
prettier: true
eslint_extensions: ts
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run linters
run: npm run lint

- name: OpenAPI Lint Checks
if: ${{ inputs.enableOpenApiCheck == true }}
uses: nwestfall/openapi-action@v1.0.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ inputs.openApiFilePath }}
run: npx @redocly/cli lint --format=github-actions ${{ inputs.openApiFilePath }}

security:
runs-on: ubuntu-latest
Expand Down