|
81 | 81 | - uses: actions/checkout@v4
|
82 | 82 | with:
|
83 | 83 | fetch-depth: 1
|
84 |
| - - uses: actions/setup-go@v5 |
| 84 | + - id: setup-go |
| 85 | + uses: actions/setup-go@v5 |
85 | 86 | with:
|
| 87 | + cache: false |
86 | 88 | go-version: ${{ matrix.go-version }}
|
| 89 | + - uses: ./.github/actions/setup_cache_for_go |
| 90 | + with: |
| 91 | + go-version: ${{ steps.setup-go.outputs.go-version }} |
| 92 | + runs-on: ubuntu-24.04 |
87 | 93 | - name: Unit tests
|
88 | 94 | run: go test -v ./...
|
89 | 95 | - name: Make
|
@@ -161,9 +167,15 @@ jobs:
|
161 | 167 | - uses: actions/checkout@v4
|
162 | 168 | with:
|
163 | 169 | fetch-depth: 1
|
164 |
| - - uses: actions/setup-go@v5 |
| 170 | + - id: setup-go |
| 171 | + uses: actions/setup-go@v5 |
165 | 172 | with:
|
| 173 | + cache: false |
166 | 174 | go-version: 1.23.x
|
| 175 | + - uses: ./.github/actions/setup_cache_for_go |
| 176 | + with: |
| 177 | + go-version: ${{ steps.setup-go.outputs.go-version }} |
| 178 | + runs-on: macos-12 |
167 | 179 | - name: Unit tests
|
168 | 180 | run: go test -v ./...
|
169 | 181 | - name: Make
|
@@ -287,23 +299,34 @@ jobs:
|
287 | 299 | # fetch-depth is set to 0 to let `limactl --version` print semver-ish version
|
288 | 300 | fetch-depth: 0
|
289 | 301 | ref: ${{ github.event.pull_request.head.sha }}
|
290 |
| - - uses: actions/setup-go@v5 |
291 |
| - with: |
292 |
| - go-version: 1.23.x |
293 | 302 | - uses: actions/cache@v4
|
294 | 303 | with:
|
295 | 304 | path: ~/.cache/lima/download
|
296 | 305 | key: ${{ runner.os }}-colima-${{ matrix.colima-version }}
|
297 | 306 | - uses: ./.github/actions/install_lima_from_artifact
|
298 | 307 | with:
|
299 | 308 | artifact: ${{ needs.build-on-ubuntu.outputs.artifact }}
|
| 309 | + - name: Checkout colima |
| 310 | + uses: actions/checkout@v4 |
| 311 | + with: |
| 312 | + repository: abiosoft/colima |
| 313 | + ref: ${{ matrix.colima-version }} |
| 314 | + path: colima |
| 315 | + - id: setup-go |
| 316 | + uses: actions/setup-go@v5 |
| 317 | + with: |
| 318 | + cache: false |
| 319 | + go-version: 1.23.x |
| 320 | + - uses: ./.github/actions/setup_cache_for_go |
| 321 | + with: |
| 322 | + go-version: ${{ steps.setup-go.outputs.go-version }} |
| 323 | + runs-on: macos-12 |
| 324 | + working-directory: ./colima |
300 | 325 | - name: Install colima
|
301 | 326 | run: |
|
302 |
| - git clone https://github.com/abiosoft/colima |
303 |
| - cd colima |
304 |
| - git checkout ${{ matrix.colima-version }} |
305 | 327 | make
|
306 | 328 | sudo make install
|
| 329 | + working-directory: ./colima |
307 | 330 | - name: Install test dependencies
|
308 | 331 | run: |
|
309 | 332 | sudo apt-get update
|
@@ -382,9 +405,15 @@ jobs:
|
382 | 405 | - uses: actions/checkout@v4
|
383 | 406 | with:
|
384 | 407 | fetch-depth: 0
|
385 |
| - - uses: actions/setup-go@v5 |
| 408 | + - id: setup-go |
| 409 | + uses: actions/setup-go@v5 |
386 | 410 | with:
|
| 411 | + cache: false |
387 | 412 | go-version: 1.23.x
|
| 413 | + - uses: ./.github/actions/setup_cache_for_go |
| 414 | + with: |
| 415 | + go-version: ${{ steps.setup-go.outputs.go-version }} |
| 416 | + runs-on: macos-12 |
388 | 417 | - name: Cache image used by ${{ matrix.oldver }}/examples/ubuntu-lts.yaml
|
389 | 418 | uses: ./.github/actions/setup_cache_for_template
|
390 | 419 | with:
|
|
0 commit comments