Skip to content

Commit

Permalink
ci: allow testing documentation building for any test
Browse files Browse the repository at this point in the history
  • Loading branch information
jozzsi committed Nov 3, 2024
1 parent a3d30cb commit 89fab28
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 2 additions & 4 deletions test/test-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89fab28

Please sign in to comment.