@@ -53,14 +53,14 @@ jobs:
5353 os : [ubuntu-latest, macos-latest]
5454 runs-on : ${{ matrix.os }}
5555 steps :
56- - uses : actions/checkout@v3
57- - uses : actions/setup-go@v4
56+ - uses : actions/checkout@v4
57+ - uses : actions/setup-go@v5
5858 with :
5959 go-version-file : ./go.mod
6060 - name : Build devbox
6161 run : go build -o dist/devbox ./cmd/devbox
6262 - name : Upload devbox artifact
63- uses : actions/upload-artifact@v3
63+ uses : actions/upload-artifact@v4
6464 with :
6565 name : devbox-${{ runner.os }}-${{ runner.arch }}
6666 path : ./dist/devbox
7171 if : github.ref != 'refs/heads/main'
7272 runs-on : ubuntu-latest
7373 steps :
74- - uses : actions/checkout@v3
74+ - uses : actions/checkout@v4
7575 -
uses :
crate-ci/[email protected] 7676
7777 golangci-lint :
@@ -82,23 +82,17 @@ jobs:
8282 runs-on : ${{ matrix.os }}
8383 timeout-minutes : 10
8484 steps :
85- - uses : actions/checkout@v3
86-
87- # We can remove this once we fix nix golangci-lint issue and move to devbox
88- - uses : actions/setup-go@v4
89- with :
90- go-version-file : ./go.mod
91- cache : false
85+ - uses : actions/checkout@v4
9286
9387 # This can be reanabled once released version supports runx
9488 # and we can remove needs: build-devbox
9589 # - name: Install devbox
96- # uses: jetpack-io/devbox-install-action@v0.7 .0
90+ # uses: jetpack-io/devbox-install-action@v0.8 .0
9791 # with:
9892 # enable-cache: true
9993
10094 - name : Mount golang cache
101- uses : actions/cache@v3
95+ uses : actions/cache@v4
10296 with :
10397 path : |
10498 ~/.cache/golangci-lint
@@ -107,7 +101,7 @@ jobs:
107101 key : go-${{ runner.os }}-${{ hashFiles('go.sum') }}
108102
109103 - name : Download devbox
110- uses : actions/download-artifact@v3
104+ uses : actions/download-artifact@v4
111105 with :
112106 name : devbox-${{ runner.os }}-${{ runner.arch }}
113107 - name : Add devbox to path
@@ -154,17 +148,18 @@ jobs:
154148 remove-android : true
155149 remove-haskell : true
156150 remove-codeql : true
157- - uses : actions/checkout@v3
158- - uses : actions/setup-go@v4
159- with :
160- go-version-file : ./go.mod
151+ - uses : actions/checkout@v4
161152 - name : Mount golang cache
162- uses : actions/cache@v3
153+ uses : actions/cache@v4
163154 with :
164155 path : |
165156 ~/.cache/go-build
166157 ~/go/pkg
167158 key : go-devbox-tests-${{ runner.os }}-${{ hashFiles('go.sum') }}
159+ # TODO Use devbox directly
160+ - uses : actions/setup-go@v5
161+ with :
162+ go-version-file : ./go.mod
168163 - name : Install additional shells (dash, zsh)
169164 run : |
170165 if [ "$RUNNER_OS" == "Linux" ]; then
@@ -207,9 +202,9 @@ jobs:
207202 os : [ubuntu-latest, macos-latest]
208203 runs-on : ${{ matrix.os }}
209204 steps :
210- - uses : actions/checkout@v3
205+ - uses : actions/checkout@v4
211206 - name : Download devbox
212- uses : actions/download-artifact@v3
207+ uses : actions/download-artifact@v4
213208 with :
214209 name : devbox-${{ runner.os }}-${{ runner.arch }}
215210 - name : Add devbox to path
@@ -239,9 +234,9 @@ jobs:
239234 nix-version : [2.15.1, 2.16.1, 2.17.0, 2.18.0, 2.19.2]
240235 runs-on : ${{ matrix.os }}
241236 steps :
242- - uses : actions/checkout@v3
237+ - uses : actions/checkout@v4
243238 - name : Download devbox
244- uses : actions/download-artifact@v3
239+ uses : actions/download-artifact@v4
245240 with :
246241 name : devbox-${{ runner.os }}-${{ runner.arch }}
247242 - name : Add devbox to path
0 commit comments