Skip to content

Commit 4df5599

Browse files
committed
(gha) Add tests for installing a specific package
and package/version.
1 parent 32626da commit 4df5599

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/pr_testing.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,67 @@ jobs:
131131
env:
132132
PT_version: "8.14.0"
133133
run: ./openvox_bootstrap/tasks/install_linux.sh
134+
135+
test-install-package:
136+
strategy:
137+
matrix:
138+
image:
139+
- rockylinux:9
140+
# openvox-server not currently built for fedora
141+
# - fedora:41
142+
- debian:12
143+
- ubuntu:24.04
144+
# Need to pull in the repo GPG keys for sles
145+
# - registry.suse.com/suse/sle15:15.6
146+
needs: shellcheck
147+
runs-on: ubuntu-latest
148+
container: ${{ matrix.image }}
149+
steps:
150+
- uses: actions/checkout@v4
151+
with:
152+
path: openvox_bootstrap
153+
- id: prep
154+
uses: ./openvox_bootstrap/.github/actions/container_task_prep
155+
- name: Run openvox-agent install task manually
156+
env:
157+
PT_package: "openvox-server"
158+
run: ./openvox_bootstrap/tasks/install_linux.sh
159+
- name: Verify openvox-server is installed
160+
run: /opt/puppetlabs/bin/puppetserver --version | grep -E '8\.[0-9]+'
161+
- name: Verify idempotency
162+
env:
163+
PT_package: "openvox-server"
164+
run: ./openvox_bootstrap/tasks/install_linux.sh
165+
166+
test-install-package-version:
167+
strategy:
168+
matrix:
169+
image:
170+
- rockylinux:9
171+
# openvox-server not currently built for fedora
172+
#- fedora:41
173+
- debian:12
174+
- ubuntu:24.04
175+
# Need to pull in the repo GPG keys for sles
176+
# - registry.suse.com/suse/sle15:15.6
177+
needs: shellcheck
178+
runs-on: ubuntu-latest
179+
container: ${{ matrix.image }}
180+
steps:
181+
- uses: actions/checkout@v4
182+
with:
183+
path: openvox_bootstrap
184+
- id: prep
185+
uses: ./openvox_bootstrap/.github/actions/container_task_prep
186+
- name: Run openvox-agent install task manually
187+
env:
188+
PT_package: "openvox-server"
189+
PT_version: "8.8.0"
190+
run: ./openvox_bootstrap/tasks/install_linux.sh
191+
- name: Verify openvox-server is installed
192+
run: /opt/puppetlabs/bin/puppetserver --version | grep '8.8.0'
193+
- name: Verify idempotency
194+
env:
195+
PT_package: "openvox-server"
196+
PT_version: "8.8.0"
197+
run: ./openvox_bootstrap/tasks/install_linux.sh

0 commit comments

Comments
 (0)