From 862bdce0b33d8afcac0d4e464ac2b0d1e2337773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Schw=C3=B6rer?= Date: Fri, 16 Oct 2020 17:58:16 +0200 Subject: [PATCH] ci: disable modules for cli tool installation --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fcaad6e..c6ab367 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,11 +29,16 @@ jobs: go-version: ^1.14 id: go + - name: Install CLI tools + env: + GO111MODULE: off + run: | + go get github.com/swaggo/swag/cmd/swag + go get github.com/GeertJohan/go.rice/rice + - name: Test run: | cd api/ - go get -u github.com/swaggo/swag/cmd/swag - go get -u github.com/GeertJohan/go.rice/rice swag init cp config.example.yaml config.yaml go test -v ./... -cover @@ -42,8 +47,6 @@ jobs: if: "!startsWith(github.ref, 'refs/tags/v')" run: | cd api/ - go get -u github.com/swaggo/swag/cmd/swag - go get -u github.com/GeertJohan/go.rice/rice swag init rice embed-go go build -v .