Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add swagger check #457

Merged
merged 5 commits into from
Mar 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/generate-swagger/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: generate swagger
description: generate swagger files based on protobuf
runs:
using: "composite"
steps:
- run: make proto-swagger-gen
shell: sh
- run: make update-swagger-docs
shell: sh
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Build, CI

* (ci) [\#457](https://github.com/line/lbm-sdk/pull/457) add swagger check

### Document Updates