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: