Skip to content

Commit b3a19bf

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

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/pr_testing_install_build_artifact.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,65 @@ jobs:
7272
PT__installdir: ${{ github.workspace }}
7373
PT_version: "8.15.0"
7474
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
75+
76+
test-install-build-artifact-task-noarch:
77+
strategy:
78+
matrix:
79+
details:
80+
- image: almalinux:9
81+
prereqs:
82+
java-17-openjre-headless
83+
net-tools
84+
procps-ng
85+
which
86+
- image: debian:12
87+
prereqs:
88+
openjdk-17-jre-headless
89+
net-tools
90+
procps
91+
- image: fedora:42
92+
prereqs:
93+
java-17-openjre-headless
94+
net-tools
95+
procps-ng
96+
which
97+
- image: ubuntu:24.04
98+
prereqs:
99+
openjdk-17-jre-headless
100+
net-tools
101+
procps
102+
runs-on: ubuntu-latest
103+
container: ${{ matrix.details.image }}
104+
steps:
105+
- uses: actions/checkout@v4
106+
with:
107+
path: openvox_bootstrap
108+
- id: prep
109+
uses: ./openvox_bootstrap/.github/actions/container_task_prep
110+
- name: Run openvox-agent install task manually
111+
env:
112+
PT__installdir: ${{ github.workspace }}
113+
PT_version: "8.19.1"
114+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
115+
- name: Install prerequisites
116+
shell: bash
117+
env:
118+
PREREQ_PACKAGES: ${{ join(matrix.details.prereqs, ',') }}
119+
run: |-
120+
/opt/puppetlabs/bin/puppet apply --detailed-exitcodes <<EOS
121+
package { [${PREREQ_PACKAGES}]:
122+
ensure => installed
123+
}
124+
EOS
125+
- name: Test noarch package installation
126+
env:
127+
PT__installdir: ${{ github.workspace }}
128+
PT_package: "openvox-server"
129+
PT_version: "8.8.0"
130+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
131+
- name: Verify openvox-server is installed
132+
shell: bash
133+
run: |-
134+
/opt/puppetlabs/bin/puppet resource package openvox-server > openvox-server.status
135+
cat openvox-server.status
136+
grep "ensure.*=>.*'8.8.0" openvox-server.status

0 commit comments

Comments
 (0)