diff --git a/.github/actions/unit-tests/action.yml b/.github/actions/unit-tests/action.yml index 5f525f93..7ea81bc3 100644 --- a/.github/actions/unit-tests/action.yml +++ b/.github/actions/unit-tests/action.yml @@ -2,7 +2,7 @@ name: "Unit Tests" description: "Run unit tests using go" inputs: GO_VERSION: - default: "1.17" + default: "1.18" env: GO111MODULE: "on" GOPROXY: "https://proxy.golang.org" diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index fb02fb3b..ab4efad3 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -36,7 +36,7 @@ jobs: network-policy: [true, false] job-network-policy: [true, false] env: - GO_VERSION: 1.17 + GO_VERSION: 1.18 GOPROXY: "https://proxy.golang.org" GO111MODULE: "on" BRANCH: ${{ github.head_ref || github.ref_name }} diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index e9c50663..bed010f5 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -8,18 +8,5 @@ jobs: - name: Check out code. uses: actions/checkout@v3.0.2 - - name: Set up Go - uses: actions/setup-go@v3.2.1 - with: - go-version-file: "go.mod" - id: go - - name: Install linters - run: "( mkdir linters && cd linters && go get golang.org/x/lint/golint )" - - uses: reviewdog/action-setup@v1 - with: - reviewdog_version: latest - - name: Run reviewdog - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - reviewdog -reporter=github-pr-review + - name: golangci-lint + uses: reviewdog/action-golangci-lint@v2 diff --git a/Dockerfile b/Dockerfile index cb3c9813..5e934283 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Use the offical Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. # https://hub.docker.com/_/golang -FROM golang:1.17.5-alpine as builder +FROM golang:1.18.3-alpine as builder RUN apk add --no-cache gcc libc-dev git diff --git a/go.mod b/go.mod index e984808b..40509fd0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module keptn-contrib/job-executor-service -go 1.17 +go 1.18 require ( github.com/Masterminds/semver/v3 v3.1.1