From d00683ae160373ad56602e5a49ba4725634c0265 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Wed, 3 Dec 2025 17:16:40 +0100 Subject: [PATCH] fix CI workflow caching by reordering checkout and setup-go steps - move checkout step before setup-go to enable proper Go module caching - update actions/checkout to v4 and actions/setup-go to v5 - update golangci-lint-action to v7 with latest version - remove deprecated go get -v and GO111MODULE (now default) - use env block for TZ instead of export --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5756f28..69506e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,18 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: set up go 1.20 - uses: actions/setup-go@v4 - with: - go-version: "1.22" - id: go - - name: checkout uses: actions/checkout@v4 + - name: set up go + uses: actions/setup-go@v5 + with: + go-version: "1.24" + id: go + - name: build and test run: | - go get -v go test -timeout=300s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./... cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov go build -race @@ -32,7 +31,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v7 with: - version: v2.0.2 + version: v2.6 - name: install goveralls run: go install github.com/mattn/goveralls@latest