]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: create a separate job for systemd tests
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 27 Nov 2025 12:35:06 +0000 (07:35 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 27 Nov 2025 17:01:03 +0000 (12:01 -0500)
Do not attempt to run systemd tests on non-systemd enabled
environment.

.github/workflows/integration-extra.yml

index 5a30cb915564abcc039e1527e46b0ef4addce02b..fc66c5e8426fab8dab8a85b3ee5c6e3a0fb873a5 100644 (file)
@@ -48,24 +48,54 @@ jobs:
                     - "20"
                     - "26"
                     - "30"
-                    - "40"
-                    - "41"
-                    - "42"
-                    - "43"
                     - "50"
                     - "80"
                     - "81"
                     - "82"
                 exclude:
-                    # https://github.com/dracut-ng/dracut-ng/issues/1224
-                    - container: gentoo:amd64-openrc
-                      test: "43"
                     # https://github.com/dracut-ng/dracut-ng/issues/1407
                     - container: debian:sid
                       test: "12"
                     # https://github.com/dracut-ng/dracut-ng/issues/1590
                     - container: ubuntu:rolling
                       test: "30"
+        container:
+            image: ghcr.io/dracut-ng/${{ matrix.container }}-amd
+            options: '--device=/dev/kvm --privileged'
+        steps:
+            - name: "Checkout Repository"
+              uses: actions/checkout@v6
+            - name: "${{ matrix.container }} TEST-${{ matrix.test }}"
+              run: ./test/test-container.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
+    systemd:
+        # run this test on all containers
+        name: ${{ matrix.test }} on ${{ matrix.container }}
+        runs-on: ubuntu-24.04
+        timeout-minutes: 20
+        concurrency:
+            group: extra-basic-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}
+            cancel-in-progress: true
+        strategy:
+            fail-fast: false
+            matrix:
+                container:
+                    - arch:latest
+                    - azurelinux:3.0
+                    - debian:latest
+                    - debian:sid
+                    - fedora:latest
+                    - fedora:rawhide
+                    - centos:stream10-development
+                    - gentoo:latest
+                    - opensuse:latest
+                    - ubuntu:devel
+                    - ubuntu:rolling
+                test:
+                    - "40"
+                    - "41"
+                    - "42"
+                    - "43"
+                exclude:
                     # https://github.com/dracut-ng/dracut-ng/issues/1677
                     - container: arch:latest
                       test: "41"