Skip to content

Commit 806c3c3

Browse files
botantler[bot]github-actions[bot]devantler
authored
fix: enable Go module caching in coverage steps action (#1996)
Add cache: true and cache-dependency-path to setup-go action to prevent network issues when downloading Go modules during coverage testing. This fixes Forbidden errors from storage.googleapis.com proxy by utilizing GitHub Actions' built-in Go module caching mechanism. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nikolai Emil Damm <[email protected]>
1 parent 0d08fa3 commit 806c3c3

File tree

1 file changed

+3
-1
lines changed
  • .github/actions/daily-test-improver/coverage-steps

1 file changed

+3
-1
lines changed

.github/actions/daily-test-improver/coverage-steps/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ description: Builds the project, runs tests, and generates coverage reports
44
runs:
55
using: composite
66
steps:
7-
# Step 1: Setup Go environment
7+
# Step 1: Setup Go environment with module caching
88
- name: ⚙️ Setup Go
99
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
1010
with:
1111
go-version-file: go.mod
12+
cache: true
13+
cache-dependency-path: go.sum
1214

1315
# Step 2: Verify Go installation
1416
- name: ✅ Verify Go setup

0 commit comments

Comments
 (0)