gha: Add the ability to test qemu-snp

With the changes proposed as part of this PR, a qemu-snp cluster
will be created but no tests will be performed.

GitHub Actions will only run the tests using the workflows that are
part of the **target** branch, instead of the using the ones coming
from the PR. No way to work around this for now.

After this commit is merged, the tests (not the yaml files for the
actions) will be altered in order for the checkout action  to help in
this case.

Fixes: #6722

Signed-off-by: Ryan Savino <ryan.savino@amd.com>
This commit is contained in:
Ryan Savino 2023-04-24 11:34:34 -05:00
parent 29785a43d7
commit c57a44436c

4
tests/integration/kubernetes/run_kubernetes_tests.sh Executable file → Normal file
View File

@ -58,6 +58,10 @@ if [ ${KATA_HYPERVISOR} == "qemu-sev" ]; then
exit 0
fi
if [ ${KATA_HYPERVISOR} == "qemu-snp" ]; then
exit 0
fi
# we may need to skip a few test cases when running on non-x86_64 arch
arch_config_file="${kubernetes_dir}/filter_out_per_arch/${TARGET_ARCH}.yaml"
if [ -f "${arch_config_file}" ]; then