This actions uses redocly/openapi-cli to lint OpenAPI documents in a repository. It now supports OAS 3.1.
See action.yml.
name: OpenAPI Lint
on:
- push
jobs:
build:
name: OpenAPI Lint
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v2
# Run Redocly Lint
- uses: mattpage/[email protected]
with:
entrypoints: 'documents/openapi.yaml'
config: '.redocly.yml'
- GitHub Checks Annotations
- Rule exceptions