Skip to content

Commit b14fd83

Browse files
committed
(gha) Add the beginnings of a github actions pipeline
for pr testing. Perform a shellcheck, then test that the agent installation task runs on latest ubuntu.
1 parent d5d734e commit b14fd83

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/pr_testing.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: 'PR Tests'
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
shellcheck:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install ShellCheck
18+
run: sudo apt-get install shellcheck
19+
- name: Run ShellCheck
20+
run: shellcheck tasks/*.sh
21+
22+
test-install-task-on-ubuntu:
23+
runs-on: ubuntu-latest
24+
needs: shellcheck
25+
steps:
26+
- uses: actions/checkout@v4
27+
# - name: Install dependencies
28+
# run: sudo apt wget
29+
- name: Install Bolt
30+
run: |-
31+
wget https://apt.puppet.com/puppet-tools-release-noble.deb
32+
sudo dpkg -i puppet-tools-release-noble.deb
33+
sudo apt update
34+
sudo apt install -y puppet-bolt
35+
- name: Install module dependencies
36+
run: bolt module install
37+
- name: Run openvox-agent install task
38+
run: bolt task run openvox_bootstrap::install --targets localhost
39+
- name: Verify openvox-agent is installed
40+
run: puppet --version

0 commit comments

Comments
 (0)