Skip to content

Commit b6ae6c7

Browse files
committed
wip debug
1 parent 0c93b09 commit b6ae6c7

File tree

1 file changed

+49
-16
lines changed

1 file changed

+49
-16
lines changed

.github/workflows/pr_testing.yaml

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ jobs:
2222
test-install-task-on-ubuntu:
2323
strategy:
2424
matrix:
25-
os: [ubuntu-20.04, ubuntu-22.04]
25+
os-details:
26+
- os: ubuntu-20.04
27+
codename: focal
28+
- os: ubuntu-22.04
29+
codename: jammy
2630
# Perforce hasn't yet released bolt on 24.04.
27-
runs-on: ${{ matrix.os }}
31+
runs-on: ${{ matrix.os-details.os }}
2832
needs: shellcheck
2933
steps:
3034
- uses: actions/checkout@v4
3135
- name: Install Bolt
3236
run: |-
33-
wget https://apt.puppet.com/puppet-tools-release-jammy.deb
34-
sudo dpkg -i puppet-tools-release-jammy.deb
37+
wget https://apt.puppet.com/puppet-tools-release-${{ matrix.os-details.codename }}.deb
38+
sudo dpkg -i puppet-tools-release-${{ matrix.os-details.codename }}.deb
3539
sudo apt update
3640
sudo apt install -y puppet-bolt
3741
- name: Install module dependencies
@@ -46,25 +50,54 @@ jobs:
4650
strategy:
4751
matrix:
4852
image:
49-
- rockylinux/rockylinux:7
50-
- rockylinux/rockylinux:8
51-
- rockylinux/rockylinux:9
52-
- rockylinux/rockylinux:10
53-
- debian/debian:10
54-
- debian/debian:11
55-
- debian/debian:12
56-
- sles/sles:15
53+
- rockylinux:8
54+
- rockylinux:9
55+
- debian:10
56+
- debian:11
57+
- debian:12
58+
- registry.suse.com/suse/sle15:15
5759
needs: shellcheck
5860
runs-on: ubuntu-latest
5961
container: ${{ matrix.image }}
6062
steps:
6163
- uses: actions/checkout@v4
62-
- name: Checkout facts module
63-
run: git clone https://github.com/puppetlabs/puppetlabs-facts.git ../facts
64+
- uses: actions/checkout@v4
65+
with:
66+
repository: puppetlabs/puppetlabs-facts
67+
path: facts
68+
- name: debugging
69+
run: |
70+
pwd
71+
echo "Running on ${{ matrix.image }}"
72+
ls -l
73+
echo "${GITHUB_WORKSPACE}"
74+
ls -l "${GITHUB_WORKSPACE}/.."
75+
- name: Ensure wget is installed (apt)
76+
if: startsWith(matrix.image, 'debian')
77+
run: |
78+
if ! command -v wget &> /dev/null; then
79+
sudo apt update
80+
sudo apt install -y wget
81+
fi
82+
- name: Ensure wget is installed (dnf)
83+
if: startsWith(matrix.image, 'rocky')
84+
run: |
85+
if ! command -v wget &> /dev/null; then
86+
sudo dnf install -y wget
87+
fi
88+
- name: Ensure wget is installed (zypper)
89+
if: contains(matrix.image, 'suse')
90+
run: |
91+
if ! command -v wget &> /dev/null; then
92+
sudo zypper install -y wget
93+
fi
6494
- name: Run openvox-agent install task manually
6595
env:
66-
PT__installdir: "${PWD}/.."
67-
run: sudo -E tasks/install_linux.sh
96+
PT__installdir: ${{ github.workspace }}
97+
PT_collection: openvox8
98+
PT_apt_source: "https://apt.overlookinfratech.com"
99+
PT_yum_source: "https://yum.overlookinfratech.com"
100+
run: ./tasks/install_linux.sh
68101
- name: Verify openvox-agent is installed
69102
run: |-
70103
[[ "$(/opt/puppetlabs/bin/puppet --version)" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]

0 commit comments

Comments
 (0)