From 0b68c00dcfcaf0c54cceda8e80e39035687d1ddb Mon Sep 17 00:00:00 2001 From: Jason N <33561705+JasonN3@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:42:05 -0600 Subject: [PATCH] Run tests using multiple installer versions (#47) --- .github/workflows/build-and-test.yml | 27 +++++++++++++++++++-------- external/fedora-lorax-templates | 1 + 2 files changed, 20 insertions(+), 8 deletions(-) create mode 160000 external/fedora-lorax-templates diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2981e79..74801ed 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,7 +13,7 @@ env: ARCH: 'x86_64' IMAGE_NAME: 'base' IMAGE_REPO: 'quay.io/fedora-ostree-desktops' - VERSION: '39' + IMAGE_TAG: '39' VARIANT: 'Server' SECURE_BOOT_KEY_URL: 'https://github.com/ublue-os/akmods/raw/main/certs/public_key.der' ENROLLMENT_PASSWORD: 'container-installer' @@ -64,6 +64,11 @@ jobs: permissions: contents: read packages: write + strategy: + matrix: + version: + - 38 + - 39 steps: - name: Checkout repo uses: actions/checkout@v4 @@ -88,20 +93,21 @@ jobs: arch: ${{ env.ARCH}} image_name: ${{ env.IMAGE_NAME}} image_repo: ${{ env.IMAGE_REPO}} - version: ${{ env.VERSION }} + image_tag: ${{ env.IMAGE_TAG }} + version: ${{ matrix.version }} variant: ${{ env.VARIANT }} secure_boot_key_url: ${{ env.SECURE_BOOT_KEY_URL }} enrollment_password: ${{ env.ENROLLMENT_PASSWORD }} - name: Rename ISO run: | - mv build/deploy.iso build/${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso + mv build/deploy.iso build/${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso - name: Upload ISO as artifact id: upload uses: actions/upload-artifact@v4 with: - name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso + name: ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso path: build/*.iso if-no-files-found: error retention-days: 0 @@ -115,6 +121,11 @@ jobs: permissions: contents: read packages: write + strategy: + matrix: + version: + - 38 + - 39 steps: - name: Checkout repo uses: actions/checkout@v4 @@ -131,15 +142,15 @@ jobs: - name: Download generated ISO uses: actions/download-artifact@v4 with: - name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso + name: ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso - name: Verify ISO - run: checkisomd5 ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso + run: checkisomd5 ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso - name: Run ISO checks run: | - mv ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso deploy.iso - make test-iso + mv ${{ env.IMAGE_NAME }}-${{ env.IMAGE_TAG }}-${{ matrix.version }}.iso deploy.iso + make test-iso VERSION=${{ matrix.version }} - name: Add Kickstart and Grub options to ISO run: | diff --git a/external/fedora-lorax-templates b/external/fedora-lorax-templates new file mode 160000 index 0000000..cc11553 --- /dev/null +++ b/external/fedora-lorax-templates @@ -0,0 +1 @@ +Subproject commit cc1155372046baa58f9d2cc27a9e5473bf05a3fb