File tree Expand file tree Collapse file tree 3 files changed +28
-28
lines changed
Expand file tree Collapse file tree 3 files changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -395,27 +395,23 @@ jobs:
395395 - name : Install
396396 run : sudo make install
397397 - name : Install colima
398+ - name : " Install colima"
399+ id : install-colima
398400 run : |
399401 git clone https://github.com/abiosoft/colima
400402 cd colima
401- git checkout ${{ matrix.colima-version }}
403+ latest="$(git tag --sort=-v:refname | head -n1)"
404+ git checkout "$latest"
402405 make
403406 sudo make install
404- - name : Install test dependencies
405- run : |
406- sudo apt-get update
407- sudo ./hack/install-qemu.sh
408- - name : " Show cache"
409- run : ./hack/debug-cache.sh
410- - name : " Test"
411- uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
412- with :
413- timeout_minutes : 30
414- retry_on : error
415- max_attempts : 3
416- command : ./hack/test-colima.sh
417- - name : " Show cache"
418- run : ./hack/debug-cache.sh
407+ echo "version=$latest" >>$GITHUB_OUTPUT
408+ - name : " Cache colima"
409+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
410+ with :
411+ path : ~/.cache/colima
412+ key : colima-${{ steps.install-colima.outputs.version }}
413+ - name : " Run BATS colima tests"
414+ run : ./hack/bats/lib/bats-core/bin/bats --timing ./hack/bats/extras/colima.bats
419415
420416 vmnet :
421417 name : " VMNet tests (QEMU)"
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Copyright The Lima Authors
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ load " ../helpers/load"
5+
6+ @test ' Docker' {
7+ colima start
8+ docker run -p 8080:80 -d --name nginx " ${TEST_CONTAINER_IMAGES[nginx]} "
9+ sleep 5
10+ run curl -sSI http://localhost:8080
11+ [ " $status " -eq 0 ]
12+ [[ " $output " == * " 200 OK" * ]]
13+ docker rm -f nginx
14+ colima stop
15+ colima delete -f
16+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments