diff --git a/.github/workflows/verify-go-src.yml b/.github/workflows/verify-go-src.yml new file mode 100644 index 00000000..2a324189 --- /dev/null +++ b/.github/workflows/verify-go-src.yml @@ -0,0 +1,33 @@ +name: Verify Go client + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + verify-go: + name: Verify go client source code is up to date + strategy: + matrix: + os: [ubuntu-latest] + go_version: [1.14.x] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go ${{ matrix.go }} + uses: actions/setup-go@v2.1.3 + with: + go-version: ${{ matrix.go_version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Install dependencies + run: make all + - name: Check for changes + run: | + if [ -z "$(git status --porcelain)" ]; then + echo "No changes to the go client source files detected" + else + echo "Changes to the go client source files detected, please run 'make all' and push your changes" + exit 1 + fi diff --git a/.gitignore b/.gitignore index 03ea050e..13c2b6f6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ vendor yarn.lock dist .vscode -.gobincache \ No newline at end of file +.gobincache +swagger_flat.json +swagger_go.json