Skip to content

Commit b811ef4

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

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/pr_testing_install_build_artifact.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,64 @@ 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-openjdk-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: ubuntu:24.04
92+
prereqs:
93+
- openjdk-17-jre-headless
94+
- net-tools
95+
- procps
96+
runs-on: ubuntu-latest
97+
container: ${{ matrix.details.image }}
98+
steps:
99+
- uses: actions/checkout@v4
100+
with:
101+
path: openvox_bootstrap
102+
- id: prep
103+
uses: ./openvox_bootstrap/.github/actions/container_task_prep
104+
- name: Run openvox-agent install task manually
105+
env:
106+
PT__installdir: ${{ github.workspace }}
107+
PT_version: "8.19.1"
108+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
109+
- name: Install prerequisites
110+
shell: bash
111+
env:
112+
PREREQ_PACKAGES: ${{ join(matrix.details.prereqs, ',') }}
113+
run: |-
114+
set +e
115+
/opt/puppetlabs/bin/puppet apply --detailed-exitcodes <<EOS
116+
package { [${PREREQ_PACKAGES}]:
117+
ensure => installed
118+
}
119+
EOS
120+
exitcode=$?
121+
set -e
122+
# Expect package changes and no failures.
123+
[[ "${exitcode}" -eq 2 ]]
124+
- name: Test noarch package installation
125+
env:
126+
PT__installdir: ${{ github.workspace }}
127+
PT_package: "openvox-server"
128+
PT_version: "8.8.0"
129+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
130+
- name: Verify openvox-server is installed
131+
shell: bash
132+
run: |-
133+
/opt/puppetlabs/bin/puppet resource package openvox-server > openvox-server.status
134+
cat openvox-server.status
135+
grep "ensure.*=>.*'8.8.0" openvox-server.status

0 commit comments

Comments
 (0)