|
65 | 65 | go mod download |
66 | 66 | - name: Check for tidiness of go.mod and go.sum |
67 | 67 | run: | |
68 | | - rm go.work.sum |
69 | | - go work sync |
70 | | - go work vendor |
71 | | - go mod tidy |
72 | | - git diff --exit-code -- . |
73 | | -
|
| 68 | + make workspace-vendor |
| 69 | + git diff --exit-code -- . ':!go.work.sum' |
74 | 70 | build-go: |
75 | 71 | name: Build & cache Go code |
76 | 72 | if: ${{ needs.changes.outputs.backend == 'true' }} |
|
85 | 81 | with: |
86 | 82 | go-version: ${{ env.GOLANG_VERSION }} |
87 | 83 | - name: Restore go build cache |
88 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 84 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
89 | 85 | with: |
90 | 86 | path: ~/.cache/go-build |
91 | 87 | key: ${{ runner.os }}-go-build-v1-${{ github.run_id }} |
@@ -156,7 +152,7 @@ jobs: |
156 | 152 | run: | |
157 | 153 | echo "/usr/local/bin" >> $GITHUB_PATH |
158 | 154 | - name: Restore go build cache |
159 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 155 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
160 | 156 | with: |
161 | 157 | path: ~/.cache/go-build |
162 | 158 | key: ${{ runner.os }}-go-build-v1-${{ github.run_id }} |
@@ -220,7 +216,7 @@ jobs: |
220 | 216 | run: | |
221 | 217 | echo "/usr/local/bin" >> $GITHUB_PATH |
222 | 218 | - name: Restore go build cache |
223 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 219 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
224 | 220 | with: |
225 | 221 | path: ~/.cache/go-build |
226 | 222 | key: ${{ runner.os }}-go-build-v1-${{ github.run_id }} |
@@ -314,7 +310,7 @@ jobs: |
314 | 310 | node-version: '22.9.0' |
315 | 311 | - name: Restore node dependency cache |
316 | 312 | id: cache-dependencies |
317 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 313 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
318 | 314 | with: |
319 | 315 | path: ui/node_modules |
320 | 316 | key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }} |
@@ -363,7 +359,7 @@ jobs: |
363 | 359 | fetch-depth: 0 |
364 | 360 | - name: Restore node dependency cache |
365 | 361 | id: cache-dependencies |
366 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 362 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
367 | 363 | with: |
368 | 364 | path: ui/node_modules |
369 | 365 | key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }} |
@@ -471,7 +467,7 @@ jobs: |
471 | 467 | sudo chmod go-r $HOME/.kube/config |
472 | 468 | kubectl version |
473 | 469 | - name: Restore go build cache |
474 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 470 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
475 | 471 | with: |
476 | 472 | path: ~/.cache/go-build |
477 | 473 | key: ${{ runner.os }}-go-build-v1-${{ github.run_id }} |
|
0 commit comments