diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d8037db5..6f70b889 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,13 +17,13 @@ jobs:
uses: actions/checkout@v4
- name: Setup Go
id: go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version: ^1.22
+ go-version: ^1.23
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v6
with:
- version: v1.59
+ version: v1.61
- name: Install dependency
run: if [ $(uname) == "Darwin" ]; then brew install gnu-sed ;fi
- name: Build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 431ad257..0fb8d330 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,9 +14,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version: ^1.22
+ go-version: ^1.23
- name: Set GOVERSION
run: echo "GOVERSION=$(go version | sed -r 's/go version go(.*)\ .*/\1/')" >> $GITHUB_ENV
@@ -51,4 +51,4 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: cosmtrek/air:${{ env.VERSION }}
- name: Show docker image digest
- run: echo ${{ steps.docker_build.outputs.digest }}
\ No newline at end of file
+ run: echo ${{ steps.docker_build.outputs.digest }}
diff --git a/.github/workflows/smoke_test_reuse_job.yml b/.github/workflows/smoke_test_reuse_job.yml
index 889204eb..77609046 100644
--- a/.github/workflows/smoke_test_reuse_job.yml
+++ b/.github/workflows/smoke_test_reuse_job.yml
@@ -16,9 +16,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup Go
id: go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version: ^1.22
+ go-version: ^1.23
- name: Install
run: make install
- name: Check rebuild
@@ -34,4 +34,4 @@ jobs:
- uses: nick-invision/assert-action@v2
with:
expected: "PASS"
- actual: ${{ steps.check_rebuild.outputs.value }}
\ No newline at end of file
+ actual: ${{ steps.check_rebuild.outputs.value }}
diff --git a/.github/workflows/smoke_test_reuse_job_windows.yml b/.github/workflows/smoke_test_reuse_job_windows.yml
index ec707558..4a01aa67 100644
--- a/.github/workflows/smoke_test_reuse_job_windows.yml
+++ b/.github/workflows/smoke_test_reuse_job_windows.yml
@@ -18,7 +18,7 @@ jobs:
id: go
uses: actions/setup-go@v4
with:
- go-version: ^1.22
+ go-version: ^1.23
- name: Setup Python
uses: actions/setup-python@v5
with:
diff --git a/.golangci.yml b/.golangci.yml
index c84882c6..ddadae49 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,6 +4,7 @@ run:
linters:
disable-all: true
enable:
+ - copyloopvar # detects places where loop variables are copied
- errcheck # Errcheck is a program for checking for unchecked errors in go programs.
- gci # Gci controls Go package import order and makes it always deterministic
- goimports # checks that goimports was run
@@ -12,5 +13,6 @@ linters:
- revive # configurable linter for Go. Drop-in replacement of golint
- staticcheck # go vet on steroids
- stylecheck # static analysis, finds bugs and performance issues, offers simplifications, and enforces style rules
+ - testifylint # checks usage of github.com/stretchr/testify
- unconvert # Remove unnecessary type conversions
- unused # Checks Go code for unused constants, variables, functions and types
diff --git a/Dockerfile b/Dockerfile
index 3175b207..24c87609 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,18 @@
-FROM golang:1.22 AS builder
+FROM golang:1.23 AS builder
LABEL maintainer="Rick Yu