diff --git a/.github/workflows/check-pull-request.yaml b/.github/workflows/check-pull-request.yaml index 33efedc4..4006c338 100644 --- a/.github/workflows/check-pull-request.yaml +++ b/.github/workflows/check-pull-request.yaml @@ -46,9 +46,9 @@ jobs: if: ${{ contains(fromJSON('["ubuntu-latest"]'), matrix.platform) }} run: sudo apt-get install pass - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.18 + go-version: 1.22 - name: Setup dependency cache uses: actions/cache@v3 with: @@ -61,7 +61,7 @@ jobs: - name: Ensure dependencies are downloaded run: go mod download - name: Setup Ginkgo - run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.9 + run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.19 - name: Run the tests run: make tests @@ -72,9 +72,9 @@ jobs: - name: Checkout the source uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.18 + go-version: 1.22 - name: Setup dependency cache uses: actions/cache@v3 with: @@ -87,6 +87,6 @@ jobs: - name: Ensure dependencies are downloaded run: go mod download - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.52 + version: v1.59 diff --git a/.golangci.yml b/.golangci.yml index 092bf5c0..91b621ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,19 +8,19 @@ issues: linters: disable-all: true enable: - - gas + - gosec - goconst - gofmt - govet - ineffassign - lll - - megacheck + - gosimple + - staticcheck + - unused - misspell - staticcheck - unconvert - unused linters-settings: - staticcheck: - go: "1.18" goconst: min-len: 4 # ignore "gcp" and "aws" diff --git a/.golangciversion b/.golangciversion index d96ae405..5b1ab270 100644 --- a/.golangciversion +++ b/.golangciversion @@ -1 +1 @@ -1.52 +1.59.1