diff --git a/.github/actions/generate-swagger/action.yml b/.github/actions/generate-swagger/action.yml new file mode 100644 index 0000000000..34644a6593 --- /dev/null +++ b/.github/actions/generate-swagger/action.yml @@ -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 diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 832fa81d63..4bc042d66c 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -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/setup-go@v2.2.0 + 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