Skip to content

Commit

Permalink
feat: lint OpenAPI as GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallesm committed Dec 19, 2023
1 parent 3e161d1 commit 1838883
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/buf-check.yaml → .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name: Check buf
name: Lint

on:
pull_request:

jobs:
check-buf:
Lint definitions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
- name: "Lint: proto"
uses: bufbuild/buf-breaking-action@v1
with:
against: "https://github.com/instill-ai/protobufs.git#branch=main,ref=HEAD~1"
- name: "Lint: openapi"
uses: mhiew/redoc-lint-github-action@v3
with:
args: "openapiv2/openapiv2.swagger.yaml"
1 change: 1 addition & 0 deletions common/openapi/v1beta/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "protoc-gen-openapiv2/options/annotations.proto";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Instill AI API";
description: "Interface definitions for the Instill AI endpoints exposed over HTTP";
version: "0.4-beta";
contact: {
name: "Instill AI";
Expand Down
1 change: 1 addition & 0 deletions openapiv2/openapiv2.swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
swagger: "2.0"
info:
title: Instill AI API
description: Interface definitions for the Instill AI endpoints exposed over HTTP
version: 0.4-beta
contact:
name: Instill AI
Expand Down

0 comments on commit 1838883

Please sign in to comment.