File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed
Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1212 - name : Set up Go
1313 uses : actions/setup-go@v2
1414 with :
15- go-version : 1.16
15+ go-version : 1.17
1616 - name : Run GoReleaser
1717 uses : goreleaser/goreleaser-action@v2
1818 with :
Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 steps :
99
10- - name : Set up Go 1.16
10+ - name : Set up Go 1.17
1111 uses : actions/setup-go@v1
1212 with :
13- go-version : 1.16
13+ go-version : 1.17
1414 id : go
1515
1616 - name : Check out code into the Go module directory
Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@master
1414 - uses : actions/setup-go@v2
1515 with :
16- go-version : ' ^1.16.6 ' # The Go version to download (if necessary) and use.
16+ go-version : ' ^1.17 ' # The Go version to download (if necessary) and use.
1717 -
uses :
engineerd/[email protected] 1818 with :
1919 name : dev
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ variables:
1111diff :
1212 stage : diff
1313 image :
14- name : $CI_REGISTRY_GO/golang:1.16
14+ name : $CI_REGISTRY_GO/golang:1.17
1515 entrypoint : [ "" ]
1616 tags :
1717 - go
2323 only :
2424 - merge_requests
2525 - branches
26+ tidy :
27+ stage : lint
28+ image :
29+ name : $CI_REGISTRY_GO/golang:1.17
30+ entrypoint : [""]
31+ tags :
32+ - go
33+ script :
34+ - go mod tidy
35+ - test -z "$(git diff 2> /dev/null)" || exit 'Go modules not tidied, issue \`go mod tidy\` and commit the result'
36+ only :
37+ - merge_requests
38+ - branches
2639golangci_lint :
2740 stage : lint
2841 image :
@@ -49,7 +62,7 @@ lint-commit-msg:
4962unit-tests :
5063 stage : unit-tests
5164 image :
52- name : $CI_REGISTRY_GO/golang:1.16
65+ name : $CI_REGISTRY_GO/golang:1.17
5366 entrypoint : [""]
5467 tags :
5568 - go
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM golang:1.16 -alpine AS builder
15+ FROM golang:1.17 -alpine AS builder
1616
1717RUN apk --no-cache add git openssh
1818
You can’t perform that action at this time.
0 commit comments