1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

move iso tests to Makefile

This commit is contained in:
Jason N. 2024-03-04 18:32:09 -05:00
parent e78da1e18b
commit 101b86b48e
2 changed files with 7 additions and 11 deletions

View file

@ -117,7 +117,7 @@ jobs:
- name: Ensure qemu is installed
run: |
sudo apt-get update
sudo apt-get install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible
sudo apt-get install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make
- name: Create disk
run: |
@ -134,16 +134,7 @@ jobs:
- name: Run ISO checks
run: |
set -ex
pwd
ls
for check in $(ls tests/iso/*)
do
if [[ -f $check && $check != "README.md" ]]
then
chmod +x $check
./${check} ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
fi
done
make test-iso
- name: Add Kickstart and Grub options to ISO
run: |

View file

@ -102,5 +102,10 @@ clean:
install-deps:
dnf install -y lorax xorriso podman
test-iso:
_TESTS = $(filter-out README.md,$(shell ls tests/iso))
$(foreach test,$(_TESTS),chmod +x tests/iso/$(test))
$(foreach test,$(_TESTS),./tests/iso/$(test) deploy.iso)
.PHONY: clean install-deps