From 615649c3bf721afa52d48a4b75595700947dc7a8 Mon Sep 17 00:00:00 2001 From: Saswata Mukherjee Date: Fri, 9 May 2025 10:39:28 +0100 Subject: [PATCH] Update CI action versions Signed-off-by: Saswata Mukherjee --- .github/workflows/go.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index cfe4c47..3952b14 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -13,10 +13,10 @@ jobs: name: Linters (Static Analysis) for Go steps: - name: Checkout code into the Go module directory. - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.19.x @@ -44,17 +44,21 @@ jobs: name: Unit tests on Go ${{ matrix.go }} ${{ matrix.platform }} steps: - name: Checkout code into the Go module directory. - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - - uses: actions/cache@v1 + - uses: actions/cache@v4 with: - path: ~/go/pkg/mod + path: | + ~/.cache/go-build + ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run unit tests. env: