Skip to content

Commit 7d95f79

Browse files
committed
(maint) Add gha workflow test for noarch artifacts package installs
1 parent ee1e345 commit 7d95f79

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pr_testing_install_build_artifact.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,29 @@ jobs:
7272
PT__installdir: ${{ github.workspace }}
7373
PT_version: "8.15.0"
7474
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
75+
- name: Install jdk prerequisite
76+
shell: bash
77+
env:
78+
PREREQ_PACKAGES: |-
79+
${{ ((contains(matrix.image, 'debian') ||
80+
contains(matrix.image, 'ubuntu')) &&
81+
'openjdk-17-jre-headless,net-tools,procps') ||
82+
'java-17-openjre-headless,net-tools,procps-ng,which' }}
83+
run: |-
84+
/opt/puppetlabs/bin/puppet apply --detailed-exitcodes <<EOS
85+
package { [${PREREQ_PACKAGES}]:
86+
ensure => installed
87+
}
88+
EOS
89+
- name: Test noarch package installation
90+
env:
91+
PT__installdir: ${{ github.workspace }}
92+
PT_package: "openvox-server"
93+
PT_version: "8.8.0"
94+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
95+
- name: Verify openvox-server is installed
96+
shell: bash
97+
run: |-
98+
/opt/puppetlabs/bin/puppet resource package openvox-server > openvox-server.status
99+
cat openvox-server.status
100+
grep "ensure.*=>.*'8.8.0" openvox-server.status

0 commit comments

Comments
 (0)