generate OpenAPI docs #444
Workflow file for this run
This file contains hidden or 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: "Lint" | |
on: | |
push: | |
branches: | |
- "!dependabot/*" | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
types: | |
# This makes the buf checks run again when attributes of the PRs change. | |
- "ready_for_review" | |
- "labeled" | |
- "unlabeled" | |
# These are the defaults | |
- "opened" | |
- "synchronize" | |
- "reopened" | |
jobs: | |
lint: | |
name: "Lint & Publish Draft/Branch" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "authzed/actions/yaml-lint@main" | |
- name: "Lint Buf" | |
uses: "bufbuild/buf-action@v1" | |
with: | |
token: "${{ secrets.BUF_REGISTRY_TOKEN }}" | |
breaking_against: "https://github.com/authzed/api.git#branch=main" | |
- name: "Lint Swagger docs" | |
uses: "swaggerexpert/swagger-editor-validate@264fd875d3c6e1bf65da1f0a63e095cbe41ffef3" # v1.5.1 | |
with: | |
definition-file: "./docs/apidocs.swagger.json" |