Repository navigation
62 lines (54 loc) · 1.85 KB
/
Copy pathinstall-vm.yml
File metadata and controls
62 lines (54 loc) · 1.85 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
60
61
62
# Runs repository-controlled KVM code only when a maintainer explicitly requests it.
# Never add pull_request or pull_request_target triggers to this privilege-bearing workflow.
name: Optional install VM suite
on:
workflow_dispatch:
inputs:
scenario:
description: Optional scenario id (empty runs the full suite)
required: false
type: string
permissions:
contents: read
concurrency:
group: install-vm-${{ github.ref }}
cancel-in-progress: true
jobs:
install-vm:
name: Firecracker install compatibility
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.4
- name: Install ordinary development dependencies
run: bun install --frozen-lockfile
- name: Run selected install scenarios
env:
INSTALL_VM_SCENARIO: ${{ inputs.scenario }}
run: |
args=(--allow-skip)
if [[ -n "$INSTALL_VM_SCENARIO" ]]; then
args+=(--scenario "$INSTALL_VM_SCENARIO")
fi
bun run test:install-vm -- "${args[@]}"
- name: Upload structured install results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: install-vm-results
path: |
tmp/install-vm/runs
!tmp/install-vm/**/*.ext4
!tmp/install-vm/**/*.socket
!tmp/install-vm/**/id_*
!tmp/install-vm/**/.lock/**
!tmp/install-vm/**/*identity*
!tmp/install-vm/**/*credential*
if-no-files-found: warn