Skip to content

Commit

Permalink
chore(deps): update golangci/golangci-lint-action action to v6 (#291)
Browse files Browse the repository at this point in the history
* chore(deps): update golangci/golangci-lint-action action to v6

* chore: fix fmt

Signed-off-by: Kasper J. Hermansen <[email protected]>

* feat: add toolchain

Signed-off-by: Kasper J. Hermansen <[email protected]>

* feat: update version

Signed-off-by: Kasper J. Hermansen <[email protected]>

---------

Signed-off-by: Kasper J. Hermansen <[email protected]>
Co-authored-by: Kasper J. Hermansen <[email protected]>
  • Loading branch information
lunar-renovate and kjuulh authored May 27, 2024
1 parent 88b294a commit 7dbc56f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.19.0"
go-version: "1.21.0"

- name: Cache Go modules
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.19.0
go-version: 1.21.0
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4.0.0
uses: golangci/golangci-lint-action@v6.0.1
with:
args: --timeout=5m
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.19.0"
go-version: "1.21.0"

- name: Set tag in environment
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV # extracts the tag name from refs/tags/v1.2.3
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module go.lunarway.com/postgresql-controller

go 1.18
go 1.21

toolchain go1.21.4

require (
github.com/aws/aws-sdk-go v1.44.296
Expand Down
5 changes: 0 additions & 5 deletions pkg/iam/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ package iam

import (
"math/rand"
"time"
)

var letterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

func init() {
rand.Seed(time.Now().UnixNano())
}

func GenerateRandomString(n int) string {
b := make([]rune, n)
for i := range b {
Expand Down
5 changes: 1 addition & 4 deletions pkg/postgres/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,7 @@ func hasPassword(t *testing.T, log logr.Logger, host, username string) bool {

var password string
err = row.Scan(&password)
if err != nil {
return false
}
return true
return err == nil
}

func roleCanLogin(t *testing.T, db *sql.DB, role string) bool {
Expand Down

0 comments on commit 7dbc56f

Please sign in to comment.