--- image: golang:1.18 before_script: - go get -v stages: - build - test compile: stage: build script: - go build golangci-lint: stage: test script: - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2 - golangci-lint run