ci: update to Go 1.20.3 and golangci-lint 1.52.2

This commit is contained in:
2023-04-06 10:29:30 +02:00
parent 566fd18169
commit 61674935be
+2 -2
View File
@@ -11,7 +11,7 @@ image: buildtool/build-tools:${BUILDTOOLS_VERSION}
run-pre-commit: run-pre-commit:
stage: .pre stage: .pre
image: golang:1.19 image: golang:1.20.3
variables: variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache: cache:
@@ -23,7 +23,7 @@ run-pre-commit:
before_script: before_script:
- apt update && apt install -y python3 python3-pip ruby git - apt update && apt install -y python3 python3-pip ruby git
- go install github.com/lietu/go-pre-commit@latest - go install github.com/lietu/go-pre-commit@latest
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.49.0 - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
- pip install pre-commit - pip install pre-commit
script: script:
- pre-commit run --all-files - pre-commit run --all-files