From 4b8a6c650b2d0293f9cf6cffe9e4fc9362a2c18c Mon Sep 17 00:00:00 2001 From: Dominik Menke Date: Thu, 16 Mar 2023 16:28:03 +0100 Subject: [PATCH] ci: update actions/setup-go to v4 This brings automatic build caches. --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4fc2521..e436c13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@v3 - name: Setup Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76627e5..d5b8a6a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,21 +19,13 @@ jobs: steps: - name: Setup Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Checkout code uses: actions/checkout@v3 - - name: Cache Go modules - uses: actions/cache@v3.3.1 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-${{ env.GO_VERSION }}-go- - - name: Run tests run: make test @@ -47,21 +39,13 @@ jobs: steps: - name: Setup Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Checkout code uses: actions/checkout@v3 - - name: Cache Go modules - uses: actions/cache@v3.3.1 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-${{ env.GO_VERSION }}-go- - - name: Run linter uses: golangci/golangci-lint-action@v3 with: