Skip to content

Commit b3daed0

Browse files
committed
build: Upgrade devbox tools
1 parent 212842d commit b3daed0

File tree

11 files changed

+700
-424
lines changed

11 files changed

+700
-424
lines changed

.github/workflows/checks.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ jobs:
3434
with:
3535
enable-cache: true
3636

37+
- name: Go cache
38+
uses: actions/cache@v3
39+
with:
40+
path: |
41+
~/.cache/go-build
42+
~/go/pkg/mod
43+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44+
restore-keys: |
45+
${{ runner.os }}-go-
46+
3747
- name: Run unit tests
3848
run: devbox run -- make test
3949

@@ -64,6 +74,17 @@ jobs:
6474
with:
6575
enable-cache: true
6676

77+
- if: steps.check_e2e_tests_exist.outputs.files_exists == 'true'
78+
name: Go cache
79+
uses: actions/cache@v3
80+
with:
81+
path: |
82+
~/.cache/go-build
83+
~/go/pkg/mod
84+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
85+
restore-keys: |
86+
${{ runner.os }}-go-
87+
6788
- if: steps.check_e2e_tests_exist.outputs.files_exists == 'true'
6889
name: Build and install on KinD
6990
run: devbox run -- make dev.run-on-kind
@@ -94,6 +115,16 @@ jobs:
94115
with:
95116
enable-cache: true
96117

118+
- name: Go cache
119+
uses: actions/cache@v3
120+
with:
121+
path: |
122+
~/.cache/go-build
123+
~/go/pkg/mod
124+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
125+
restore-keys: |
126+
${{ runner.os }}-go-
127+
97128
- name: Export golang and golangci-lint versions
98129
id: versions
99130
run: |
@@ -148,6 +179,16 @@ jobs:
148179
with:
149180
enable-cache: true
150181

182+
- name: Go cache
183+
uses: actions/cache@v3
184+
with:
185+
path: |
186+
~/.cache/go-build
187+
~/go/pkg/mod
188+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
189+
restore-keys: |
190+
${{ runner.os }}-go-
191+
151192
- name: Set up pre-commit cache
152193
uses: actions/cache@v3
153194
with:

.github/workflows/release-tag.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
with:
3131
enable-cache: true
3232

33+
- name: Go cache
34+
uses: actions/cache@v3
35+
with:
36+
path: |
37+
~/.cache/go-build
38+
~/go/pkg/mod
39+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
40+
restore-keys: |
41+
${{ runner.os }}-go-
42+
3343
- name: Login to GitHub Container Registry
3444
uses: docker/login-action@v3
3545
with:

devbox.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"gnumake@latest",
1414
"gnused@latest",
1515
"go@latest",
16-
"path:./hack/flakes/go-mod-upgrade",
1716
"gojq@latest",
18-
"path:./hack/flakes/golangci-lint",
1917
"golines@latest",
2018
"goreleaser@latest",
2119
"gotestsum@latest",
@@ -30,11 +28,13 @@
3028
"kustomize@latest",
3129
"pre-commit@latest",
3230
"rsync@latest",
33-
"path:./hack/flakes/setup-envtest",
3431
"shfmt@latest",
3532
"upx@latest",
3633
"yamale@latest",
37-
"yamllint@latest"
34+
"yamllint@latest",
35+
"path:./hack/flakes#go-mod-upgrade",
36+
"path:./hack/flakes#golangci-lint",
37+
"path:./hack/flakes#setup-envtest"
3838
],
3939
"shell": {
4040
"scripts": {

0 commit comments

Comments
 (0)