mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
.github/ci: add kola qemu test
this initial attempt runs right after the "packages" jobs and downloads the resulting artifacts. The QEMU image is unzipped then the kola test is running using the ci-automation scripts. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
9878fe0590
commit
c740d57711
50
.github/workflows/ci.yaml
vendored
50
.github/workflows/ci.yaml
vendored
@ -288,3 +288,53 @@ jobs:
|
||||
scripts/images/**/flatcar_production_*.sh
|
||||
scripts/images/**/flatcar_test_update.gz
|
||||
scripts/ebuild_logs.tar.xz
|
||||
test:
|
||||
name: "Run kola tests"
|
||||
needs: packages
|
||||
runs-on:
|
||||
- debian
|
||||
- kola
|
||||
- self-hosted
|
||||
- ${{ matrix.arch }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: ["amd64", "arm64"]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: scripts
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
path: scripts
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
|
||||
# it downloads from the previous linked job.
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: images-${{ matrix.arch }}
|
||||
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
exec 2>&1
|
||||
set +x
|
||||
set -euo pipefail
|
||||
|
||||
source ci-automation/test.sh
|
||||
|
||||
# TODO: REMOVE ME (for debugging purposes)
|
||||
ls -ali
|
||||
find . -type f -name "*.bz2"
|
||||
|
||||
# extract the image.
|
||||
bzip2 --decompress scripts/images/**/flatcar_production_image.bin.bz2
|
||||
|
||||
# export the QEMU_IMAGE_NAME to avoid to download it.
|
||||
export QEMU_IMAGE_NAME=$(readlink -f scripts/images/**/flatcar_production_image.bin)
|
||||
|
||||
# run the test.
|
||||
test_run ${{ matrix.arch }} qemu
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user