]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: add daily test coverage for --hostonly-mode strict
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 19 Sep 2025 00:59:15 +0000 (20:59 -0400)
committerBenjamin Drung <bdrung@ubuntu.com>
Fri, 19 Sep 2025 08:49:39 +0000 (10:49 +0200)
Since no test container has hostonly-mode strict set by default
let's add some tests to pass `--hostonly-mode strict`
on each test run on the command line.

.github/workflows/integration-extra.yml

index 650974e373039cc9a1af61c43c9700813b0de046..b083d704ea3bfdf3f56097fce0042d18e448d27b 100644 (file)
@@ -191,3 +191,39 @@ jobs:
               uses: actions/checkout@v5
             - name: "${{ matrix.container }} TEST-${{ matrix.test }}"
               run: TEST_DRACUT_ARGS="--omit systemd" ./test/test-container.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
+    hostonlystrict:
+        name: ${{ matrix.test }} on ${{ matrix.container }} with hostonly-mode strict
+        runs-on: ubuntu-24.04
+        timeout-minutes: 20
+        concurrency:
+            group: extra-hostonlystrict-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}
+            cancel-in-progress: true
+        strategy:
+            fail-fast: false
+            matrix:
+                container:
+                    - fedora:latest
+                test:
+                    - "10"
+                    - "11"
+                    - "12"
+                    - "13"
+                    - "20"
+                    - "26"
+                    - "30"
+                    - "40"
+                    - "41"
+                    - "42"
+                    - "43"
+                    - "50"
+                    - "80"
+                    - "81"
+                    - "82"
+        container:
+            image: ghcr.io/dracut-ng/${{ matrix.container }}-amd
+            options: '--device=/dev/kvm --privileged'
+        steps:
+            - name: "Checkout Repository"
+              uses: actions/checkout@v5
+            - name: "${{ matrix.container }} TEST-${{ matrix.test }}"
+              run: TEST_DRACUT_ARGS="--hostonly-mode strict" ./test/test-container.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}