From 4cf4d303e32f7940fd45c99710b66d3e842fd492 Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Thu, 21 Jan 2021 15:26:48 +0000 Subject: [PATCH 1/2] chore(actions): check uncomitted go source code changes --- .github/workflows/verify-go-src.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/verify-go-src.yml 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 From 08798c86f7f556075c7ffe5553bf42815f439ba0 Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Thu, 21 Jan 2021 15:28:42 +0000 Subject: [PATCH 2/2] chore(gitignore): ignore swagger_* helper files --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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