From 89fab28bdfa9b00bc3f628f75cb6e41d7f128556 Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Sun, 3 Nov 2024 08:26:12 -0500 Subject: [PATCH] ci: allow testing documentation building for any test --- .github/workflows/integration.yml | 29 +++++++++++++++++++++++++++++ test/test-github.sh | 6 ++---- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index bc5cbb802..0ce876add 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -63,6 +63,35 @@ jobs: sudo apt-get -y install shellcheck shfmt make syncheck + doc: + name: ${{ matrix.test }} on ${{ matrix.container }} + runs-on: ubuntu-latest + timeout-minutes: 10 + concurrency: + group: basic-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }} + 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 }} + options: '--device=/dev/kvm' + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + - name: "${{ matrix.container }} + run: TARGETS=all enable_documentation=yes ./test/test-github.sh "TEST-${{ matrix.test }}" 10 + extended: needs: basic name: ${{ matrix.test }} on ${{ matrix.container }} diff --git a/test/test-github.sh b/test/test-github.sh index 4fd1c87e0..1e44cb285 100755 --- a/test/test-github.sh +++ b/test/test-github.sh @@ -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 +enable_documentation=${enable_documentation:=no} # shellcheck disable=SC2086 ./configure $CONFIGURE_ARG