Skip to content

Commit

Permalink
chore: update linter action and go version (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozercan committed Apr 21, 2022
1 parent 0684e78 commit 496a6ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gatekeeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go 1.17
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
# source: https://github.com/golangci/golangci-lint-action
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.45.2
Expand All @@ -21,10 +24,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go 1.17
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion constraint/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ linters-settings:
locale: US
staticcheck:
# Select the Go version to target. The default is '1.13'.
go: "1.17"
go: "1.18"

linters:
disable-all: true
Expand Down
2 changes: 1 addition & 1 deletion constraint/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.18 as builder

RUN apt-get update &&\
apt-get install -y apt-utils make
Expand Down

0 comments on commit 496a6ae

Please sign in to comment.