Rename branch master to main in CI lint #6
Workflow file for this run
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: "OpenApi lint" | |
on: | |
push: | |
branches: [ main, release* ] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
openapi-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v3 | |
- name: Install redocly cli | |
run: | | |
npm install -g @redocly/[email protected] | |
- name: Lint OpenAPI spec | |
run: | | |
redocly lint ./specification/protocol/open_inference_rest.yaml | |
grpc-proto-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v3 | |
- name: Setup buf | |
uses: bufbuild/buf-setup-action@v1 | |
- name: Run buf lint | |
uses: bufbuild/buf-lint-action@v1 | |
with: | |
input: ./specification/protocol |