Skip to content

Commit 696b17e

Browse files
committed
(gha) Test on ubuntu 22.04 by default
* run pr_testing on main branch * test on ubuntu 22.04 because puppet-bolt doesn't have a 24.04 package at present * run the task as root so it can install packages * fix version test
1 parent 53472a1 commit 696b17e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/pr_testing.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: 'PR Tests'
44
on:
55
push:
66
branches:
7-
- master
7+
- main
88
pull_request:
99
branches:
10-
- master
10+
- main
1111

1212
jobs:
1313
shellcheck:
@@ -20,21 +20,21 @@ jobs:
2020
run: shellcheck tasks/*.sh
2121

2222
test-install-task-on-ubuntu:
23-
runs-on: ubuntu-latest
23+
# Perforce hasn't yet released bolt on 24.04.
24+
runs-on: ubuntu-22.04
2425
needs: shellcheck
2526
steps:
2627
- uses: actions/checkout@v4
27-
# - name: Install dependencies
28-
# run: sudo apt wget
2928
- name: Install Bolt
3029
run: |-
31-
wget https://apt.puppet.com/puppet-tools-release-noble.deb
32-
sudo dpkg -i puppet-tools-release-noble.deb
30+
wget https://apt.puppet.com/puppet-tools-release-jammy.deb
31+
sudo dpkg -i puppet-tools-release-jammy.deb
3332
sudo apt update
3433
sudo apt install -y puppet-bolt
3534
- name: Install module dependencies
3635
run: bolt module install
3736
- name: Run openvox-agent install task
38-
run: bolt task run openvox_bootstrap::install --targets localhost
37+
run: bolt task run openvox_bootstrap::install --targets localhost --run-as root
3938
- name: Verify openvox-agent is installed
40-
run: puppet --version
39+
run: |-
40+
[[ "$(/opt/puppetlabs/bin/puppet --version)" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]

0 commit comments

Comments
 (0)