]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: test building documentation as a separate job
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 3 Nov 2024 13:26:12 +0000 (08:26 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 3 Nov 2024 16:40:05 +0000 (11:40 -0500)
.github/workflows/integration.yml
test/test-github.sh

index bc5cbb8024bad1cd33d3560b0fed3dbc28dc1b87..e6342dc3896d7b1f6fac54f0130a5da7f31c3c26 100644 (file)
@@ -63,6 +63,35 @@ jobs:
                   sudo apt-get -y install shellcheck shfmt
                   make syncheck
 
+    doc:
+        needs: basic
+        name: doc on ${{ matrix.container }}
+        runs-on: ubuntu-latest
+        timeout-minutes: 10
+        concurrency:
+            group: basic-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}
+            cancel-in-progress: true
+        strategy:
+            fail-fast: false
+            matrix:
+                container: [
+                        "alpine",
+                        "arch",
+                        "debian",
+                        "fedora",
+                        "gentoo",
+                        "opensuse",
+                        "ubuntu",
+                        "void",
+                ]
+        container:
+            image: ghcr.io/dracut-ng/${{ matrix.container }}
+        steps:
+            -   name: "Checkout Repository"
+                uses: actions/checkout@v4
+            -   name: doc on "${{ matrix.container }}"
+                run:  TARGETS=all enable_documentation=yes ./test/test-github.sh
+
     extended:
         needs: basic
         name: ${{ matrix.test }} on ${{ matrix.container }}
index 4fd1c87e0dcb0318cd79b2226fe185f24d0175ae..1f37848cd18f0d918b1e4582ac8134a259450291 100755 (executable)
@@ -9,10 +9,8 @@ if [ "$V" = "2" ]; then set -x; fi
 
 [[ -d ${0%/*} ]] && cd "${0%/*}"/../
 
-# disable documentation for extended tests
-if [ "$2" != "10" ]; then
-    CONFIGURE_ARG+=" --disable-documentation"
-fi
+# disable building documentation by default
+[ -z "$enable_documentation" ] && export enable_documentation=no
 
 # shellcheck disable=SC2086
 ./configure $CONFIGURE_ARG