Skip to content

Commit

Permalink
Use Go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-karpukhin committed Jul 14, 2022
1 parent ce26727 commit 4e5bc61
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.45.2
version: v1.46.2

# Optional: working directory, useful for monorepos
# working-directory:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: Download dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: Download tools for openshift ui tests
if: ${{ steps.properties.outputs.k8s_platform == 'openshift' && !env.ACT }}
Expand Down Expand Up @@ -209,4 +209,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: logs
path: test/e2e/output/**
path: test/e2e/output/**
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- run: go version

Expand Down
7 changes: 5 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
run:
go: 1.18

linters:
disable-all: true
enable:
- bodyclose
#- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- errorlint
- exportloopref
- gocritic
#- gocritic
- gocyclo
- goimports
- goprintffuncname
Expand Down

0 comments on commit 4e5bc61

Please sign in to comment.