From 2f85a7c0d32b3bf6f75eb68d4285cb6303634d51 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 29 Aug 2024 07:39:33 +0100 Subject: [PATCH] build: update GitHub actions versions --- .github/workflows/build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f77138af..615e49887 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,14 +55,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - stable: 'false' go-version: ${{ matrix.go }} - name: Print Go version and environment @@ -76,9 +75,12 @@ jobs: env - name: Go module cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: - path: ~/go/pkg/mod + path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/.cache/golangci-lint key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- @@ -101,7 +103,7 @@ jobs: if: matrix.integrationtest - name: Code quality test - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: # Version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest