-
Notifications
You must be signed in to change notification settings - Fork 919
59 lines (52 loc) · 1.62 KB
/
Copy pathlima.yml
File metadata and controls
59 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: lima
on:
workflow_call:
inputs:
distro:
required: true
type: string
test:
required: true
type: string
priv:
required: false
type: string
storage:
required: false
type: string
runner:
required: true
type: string
timeout:
required: false
type: number
permissions: {}
env:
# CI automation repo release for the VM image downloads in ci.sh.
# ENV is managed by renovate, do not change the name without
# updating the renovate config in the automation repo.
AUTOMATION_RELEASE: 20260722t094115z
jobs:
lima:
name: lima # main name is set by who spawns this job
runs-on: ${{ inputs.runner }}
timeout-minutes: ${{ inputs.timeout || 20 }}
permissions: {}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: lima-vm/lima-actions/setup@55627e31b78637bf254a8b2a14da8ea7d12564e5 # v1.1.0
id: lima
with:
version: v2.1.1
- name: Run test on lima
run: | # zizmor: ignore[template-injection]
./hack/ci/ci.sh ${{ inputs.test }} ${{ inputs.storage }} ${{ inputs.priv }} ${{ inputs.distro }}
- name: Upload journal as artifact
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "journal-${{ inputs.test }}-${{ inputs.storage }}-${{ inputs.priv }}-${{ inputs.distro }}.log"
path: "./hack/ci/journal.log"
if-no-files-found: ignore