Skip to content

Commit 546fbc7

Browse files
committed
cicd: Add integration test for Debian Bookworm
* Ensure we also run integration tests for Debian Bookworm (PVE 8) Fixes: #354
1 parent 15436c4 commit 546fbc7

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

‎.github/workflows/20-pipeline-build-deb-package.yml‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
integration-test-debian:
5959
needs: build-package-debian
6060
runs-on: ubuntu-latest
61+
strategy:
62+
matrix:
63+
debian_version: [bookworm, trixie]
64+
name: Integration Test on Debian ${{ matrix.debian_version }}
6165
steps:
6266
- name: Download Debian package artifact
6367
uses: actions/download-artifact@v4
@@ -66,13 +70,18 @@ jobs:
6670
path: package/
6771

6872
- name: Set up Docker with Debian image
69-
run: docker pull debian:latest
73+
run: docker pull debian:${{ matrix.debian_version }}
7074

7175
- name: Install and test Debian package in Docker container
7276
run: |
73-
docker run --rm -v $(pwd)/package:/package -w /package debian:latest bash -c "
74-
apt-get update && \
75-
apt-get install -y systemd && \
76-
apt-get install -y ./proxlb*.deb && \
77-
python3 -c 'import proxlb; print(\"OK: Debian package successfully installed.\")'
78-
"
77+
docker run --rm \
78+
-v "$(pwd)/package:/package" \
79+
-w /package \
80+
debian:${{ matrix.debian_version }} \
81+
bash -c "
82+
set -e
83+
apt-get update
84+
apt-get install -y python3 systemd
85+
apt-get install -y ./proxlb*.deb
86+
python3 -c 'import proxlb; print(\"OK: Debian package successfully installed on ${{ matrix.debian_version }}.\")'
87+
"

0 commit comments

Comments
 (0)