Skip to content

Commit 1b23c32

Browse files
committed
Add examples/alpine.yaml file and add it to integration tests
Signed-off-by: Jan Dubois <[email protected]>
1 parent e35f798 commit 1b23c32

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
timeout-minutes: 40
5353
strategy:
5454
matrix:
55-
example: [examples/default.yaml, examples/debian.yaml, examples/fedora.yaml]
55+
example: [default.yaml, alpine.yaml, debian.yaml, fedora.yaml]
5656
steps:
5757
- uses: actions/setup-go@v2
5858
with:
@@ -81,11 +81,11 @@ jobs:
8181
uses: actions/cache@v2
8282
with:
8383
path: ~/Library/Caches/lima/download
84-
key: ${{ runner.os }}-${{ matrix.example }}
84+
key: ${{ runner.os }}-examples/${{ matrix.example }}
8585
- name: Test
8686
env:
8787
EXAMPLE: ${{ matrix.example }}
88-
run: ./hack/test-example.sh $EXAMPLE
88+
run: ./hack/test-example.sh examples/$EXAMPLE
8989

9090
artifacts:
9191
name: Artifacts

examples/alpine.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
images:
2+
- location: https://github.com/rancher-sandbox/alpine-lima/releases/download/v0.0.1/alpine-lima-ci-3.13.5-x86_64.iso
3+
arch: "x86_64"
4+
5+
mounts:
6+
- location: "~"
7+
writable: false
8+
- location: "/tmp/lima"
9+
writable: true
10+
11+
ssh:
12+
# localPort is changed from 60022 to avoid conflicting with the default.
13+
# (TODO: assign localPort automatically)
14+
localPort: 60020
15+
16+
firmware:
17+
legacyBIOS: true
18+
19+
containerd:
20+
system: false
21+
user: false

hack/test-example.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ limactl validate "$FILE"
3232
declare -A CHECKS=(["systemd"]="1" ["systemd-strict"]="1" ["mount-home"]="1" ["containerd-user"]="1")
3333

3434
case "$NAME" in
35+
"alpine")
36+
WARNING "Alpine does not support systemd"
37+
CHECKS["systemd"]=
38+
CHECKS["containerd-user"]=
39+
;;
3540
"k3s")
3641
ERROR "File \"$FILE\" is not testable with this script"
3742
exit 1

0 commit comments

Comments
 (0)