]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: enable systemd-networkd testing
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 8 Apr 2024 21:32:21 +0000 (17:32 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 17 Apr 2024 11:29:14 +0000 (07:29 -0400)
Using Arch container for systemd-networkd testing as often it has
the latest version of systemd-networkd.

.github/workflows/integration.yml

index a7efa40b7c0fa02301ea890d23b37944bdef6dc7..5fbe8913f58b8aa2b1384eac82372346b5d9c432 100644 (file)
@@ -55,9 +55,7 @@ jobs:
                         "fedora",
                 ]
                 network: [
-                        "network-manager",
-                        #"systemd-networkd",
-                        #"connman",
+                        "network",
                 ]
                 test: [
                         "20",
@@ -110,6 +108,36 @@ jobs:
                 with:
                     fetch-depth: 0
 
+            -   name: "${{ matrix.container }} TEST-${{ matrix.test }}"
+                run: USE_NETWORK=${{ matrix.network }} ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
+    systemd-networkd:
+        name: ${{ matrix.test }} on ${{ matrix.container }} using ${{ matrix.network }}
+        runs-on: ubuntu-latest
+        timeout-minutes: 45
+        concurrency:
+            group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }}-${{ matrix.network }}
+            cancel-in-progress: true
+        strategy:
+            matrix:
+                container: [
+                        "arch",
+                ]
+                network: [
+                        "systemd-networkd",
+                ]
+                test: [
+                        "40",
+                ]
+            fail-fast: false
+        container:
+            image: ghcr.io/dracut-ng/${{ matrix.container }}
+            options: "--privileged -v /dev:/dev"
+        steps:
+            -   name: "Checkout Repository"
+                uses: actions/checkout@v4
+                with:
+                    fetch-depth: 0
+
             -   name: "${{ matrix.container }} TEST-${{ matrix.test }}"
                 run: USE_NETWORK=${{ matrix.network }} ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
     extended: