From ec42bb0a3bb6794d89895f68fa7ec32224e44f88 Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Wed, 20 Mar 2024 21:06:25 +0100 Subject: [PATCH] Fix actions cache (#95) --- .github/workflows/build.yml | 9 ++++++--- .github/workflows/nightly-release.yml | 9 ++++++--- .github/workflows/pr-build.yml | 9 ++++++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92b9320..03c6953 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,13 +12,16 @@ jobs: unit-test: runs-on: ubuntu-latest steps: + - name: Check out source code + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: go-version: 1.22.1 - - - name: Check out source code - uses: actions/checkout@v4 + check-latest: true + cache-dependency-path: | + src/go.sum - name: Build env: diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index cef6267..c3e59ae 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -9,13 +9,16 @@ jobs: publish: runs-on: ubuntu-latest steps: + - name: Check out source code + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: go-version: 1.22.1 - - - name: Check out source code - uses: actions/checkout@v4 + check-latest: true + cache-dependency-path: | + src/go.sum - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 76d499e..4e0bdec 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -11,13 +11,16 @@ jobs: unit-test: runs-on: ubuntu-latest steps: + - name: Check out source code + uses: actions/checkout@v4 + - name: Set up Go uses: actions/setup-go@v5 with: go-version: 1.22.1 - - - name: Check out source code - uses: actions/checkout@v4 + check-latest: true + cache-dependency-path: | + src/go.sum - name: Build env: