Skip to content

(gha) Test install in gha on other os's using containers #12

(gha) Test install in gha on other os's using containers

(gha) Test install in gha on other os's using containers #12

Workflow file for this run

---
name: 'PR Tests'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install ShellCheck
run: sudo apt-get install shellcheck
- name: Run ShellCheck
run: shellcheck tasks/*.sh
test-install-task-on-ubuntu:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
# Perforce hasn't yet released bolt on 24.04.
runs-on: ${{ matrix.os }}
needs: shellcheck
steps:
- uses: actions/checkout@v4
- name: Install Bolt
run: |-
wget https://apt.puppet.com/puppet-tools-release-jammy.deb
sudo dpkg -i puppet-tools-release-jammy.deb
sudo apt update
sudo apt install -y puppet-bolt
- name: Install module dependencies
run: bolt module install
- name: Run openvox-agent install task
run: bolt task run openvox_bootstrap::install --targets localhost --run-as root
- name: Verify openvox-agent is installed
run: |-
[[ "$(/opt/puppetlabs/bin/puppet --version)" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]
test-install-task-on-other-os-via-containers:
strategy:
matrix:
image:
- rockylinux/rockylinux:7
- rockylinux/rockylinux:8
- rockylinux/rockylinux:9
- rockylinux/rockylinux:10
- debian/debian:10
- debian/debian:11
- debian/debian:12
- sles/sles:15
needs: shellcheck
runs-on: ubuntu-latest
container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- name: Checkout facts module
run: git clone https://github.com/puppetlabs/puppetlabs-facts.git ../facts
- name: Run openvox-agent install task manually
env:
PT__installdir: "${PWD}/.."
run: sudo -E tasks/install_linux.sh
- name: Verify openvox-agent is installed
run: |-
[[ "$(/opt/puppetlabs/bin/puppet --version)" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]