diff --git a/.custom-gcl.yml b/.custom-gcl.yml index fa08f02..c59ac4a 100644 --- a/.custom-gcl.yml +++ b/.custom-gcl.yml @@ -1,4 +1,4 @@ -version: v2.1.5 +version: v2.8.0 plugins: - module: 'github.com/qor5/linter' import: 'github.com/qor5/linter/useany' diff --git a/.docker/Dockerfile b/.docker/Dockerfile index a43b13e..2497495 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -5,7 +5,7 @@ FROM golang:1.25.5-alpine AS builder RUN apk add --no-cache git make curl bash # Install golangci-lint -ARG GOLANGCI_LINT_VERSION=v2.1.5 +ARG GOLANGCI_LINT_VERSION=v2.8.0 RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin ${GOLANGCI_LINT_VERSION} # Create work directory diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 12bbf98..2f71cc6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,3 +39,9 @@ jobs: - name: Test run: go test -p=1 -count=1 -failfast -coverprofile=coverage.txt -coverpkg=github.com/qor5/... ./... + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker image (test only) + run: docker build -f .docker/Dockerfile -t linter:test .