Skip to content

Commit c2e6c94

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

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.github/workflows/pr_testing_install_build_artifact.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,70 @@ 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: fedora:42
87+
prereqs:
88+
- java-17-openjre-headless
89+
- net-tools
90+
- procps-ng
91+
- which
92+
- image: debian:12
93+
prereqs:
94+
- openjdk-17-jre-headless
95+
- net-tools
96+
- procps
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+
set +e
121+
/opt/puppetlabs/bin/puppet apply --detailed-exitcodes <<EOS
122+
package { [${PREREQ_PACKAGES}]:
123+
ensure => installed
124+
}
125+
EOS
126+
exitcode=$?
127+
set -e
128+
# Expect package changes and no failures.
129+
[[ "${exitcode}" -eq 2 ]]
130+
- name: Test noarch package installation
131+
env:
132+
PT__installdir: ${{ github.workspace }}
133+
PT_package: "openvox-server"
134+
PT_version: "8.8.0"
135+
run: ./openvox_bootstrap/tasks/install_build_artifact_linux.sh
136+
- name: Verify openvox-server is installed
137+
shell: bash
138+
run: |-
139+
/opt/puppetlabs/bin/puppet resource package openvox-server > openvox-server.status
140+
cat openvox-server.status
141+
grep "ensure.*=>.*'8.8.0" openvox-server.status

0 commit comments

Comments
 (0)