-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (52 loc) · 1.83 KB
/
Copy pathtest.yml
File metadata and controls
54 lines (52 loc) · 1.83 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
name: test hypervisor capabilities
on:
workflow_dispatch:
inputs:
image_tag:
description: "Image tag to test (must be usi-sci)"
type: string
required: true
workflow_call:
inputs:
image_tag:
description: "Image tag to test (must be usi-sci)"
type: string
required: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install oras
uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2
with:
version: 1.2.2
- name: Validate image tag
run: |
if [ -z "${{ inputs.image_tag }}" ]; then
echo "Error: image_tag is required"
exit 1
fi
echo "Verifying image ${{ inputs.image_tag }} exists in GHCR..."
if ! digest=$(oras resolve ghcr.io/gardenlinux/gardenlinux-sci:${{ inputs.image_tag }} 2>&1); then
echo "Error: Image tag '${{ inputs.image_tag }}' not found in ghcr.io/gardenlinux/gardenlinux-sci"
echo "Resolve output: $digest"
exit 1
fi
echo "Image tag present in GHCR (digest: ${digest:0:12}...)"
- name: Install Dependencies
uses: ./.github/actions/test/integration/dependencies
- name: Build
uses: ./.github/actions/test/integration/build
with:
image_tag: ${{ inputs.image_tag }}
- name: Setup
uses: ./.github/actions/test/integration/setup
- name: Test QEMU
uses: ./.github/actions/test/integration/test/qemu
- name: Test CloudHypervisor
uses: ./.github/actions/test/integration/test/cloudhypervisor
- name: Collect Debug Logs
if: always()
uses: ./.github/actions/test/integration/collect-logs