Skip to content

Commit

Permalink
ci: add swagger check
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Mar 11, 2022
1 parent 2d18824 commit 680448b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/generate-swagger/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: generate swagger
description: generate swagger files based on protobuf
runs:
using: "composite"
steps:
- run: make proto-swagger-gen
- run: make update-swagger-docs
11 changes: 11 additions & 0 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:
extensions: 'proto'
clangFormatVersion: 12
inplace: True
swagger:
name: check generated swagger files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.15
- uses: ./.github/actions/generate-swagger
- run: git diff-index --quiet HEAD

# TODO ebony: release comment after merging initial proto files to v2 branch
# breakage:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 680448b

Please sign in to comment.