Skip to content

Commit a6f613b

Browse files
committed
(gha) Add tests for installing a specific package
and package/version.
1 parent 1b94640 commit a6f613b

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/pr_testing.yaml

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

0 commit comments

Comments
 (0)