From b708da06c793dfd3dbf0e6f5e15e93b3303c6efe Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Wed, 3 Dec 2025 17:04:25 +0100 Subject: [PATCH] Fix CI workflow: checkout before setup-go for proper caching - Move checkout step before setup-go to enable Go module caching - setup-go needs go.mod/go.sum files to generate cache keys - Update actions to latest versions (checkout@v4, setup-go@v5) - Update golangci-lint to v2.6 --- .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 35d942d..4e17b71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: set up go 1.24 - uses: actions/setup-go@v3 + - name: checkout + uses: actions/checkout@v4 + + - name: set up go + uses: actions/setup-go@v5 with: go-version: "1.24" id: go - - name: checkout - uses: actions/checkout@v3 - - name: build and test run: | go get -v @@ -31,8 +31,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v7 with: - version: v2.1.6 - skip-pkg-cache: true + version: v2.6 - name: install goveralls run: | @@ -41,4 +40,4 @@ jobs: - name: submit coverage run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov env: - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}