From 7db6e3986c5ae51de58cbaebb6d13a16f3a7b74b Mon Sep 17 00:00:00 2001 From: David Tapiador Date: Thu, 14 May 2026 16:01:59 +0200 Subject: [PATCH] ci: upgrade checkout to v4 and setup-go to v5 - actions/checkout v3 -> v4: faster sparse checkout, Node 20 runtime - actions/setup-go v4 -> v5: cache enabled by default (removed explicit cache: true), improved cache key generation - Also align test job cache-dependency-path to include both go.sum files Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/reusable-go-test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reusable-go-test.yml b/.github/workflows/reusable-go-test.yml index 299c1cbcbab..c6456542f99 100644 --- a/.github/workflows/reusable-go-test.yml +++ b/.github/workflows/reusable-go-test.yml @@ -29,15 +29,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: DataDog/datadog-api-client-go ref: ${{ inputs.target-branch || github.ref }} - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - cache: true cache-dependency-path: | go.sum tests/go.sum @@ -61,16 +60,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: DataDog/datadog-api-client-go ref: ${{ inputs.target-branch || github.ref }} - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - cache: true - cache-dependency-path: tests/go.sum + cache-dependency-path: | + go.sum + tests/go.sum - name: Test run: ./scripts/run-tests.sh env: