Skip to content

Commit febee18

Browse files
author
Phil Friderici
committed
Add Github actions for validation and unit testing with Puppet 7 & 8
1 parent bd26511 commit febee18

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run PDK tests on Puppet 7.x
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
validate-7:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clone repository
12+
uses: actions/checkout@v2
13+
14+
- name: Run pdk validate
15+
uses: puppets-epic-show-theatre/action-pdk-validate@v1
16+
with:
17+
puppet-version: "7"
18+
# [optional] A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
19+
# pe-version: ""
20+
# [optional] A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".
21+
22+
test-7:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Clone repository
26+
uses: actions/checkout@v2
27+
28+
- name: Run unit tests
29+
uses: puppets-epic-show-theatre/action-pdk-test-unit@v1
30+
with:
31+
puppet-version: "7"
32+
# [optional] A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
33+
# pe-version: ""
34+
# [optional] A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run PDK tests on Puppet 8.x
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
validate-8:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clone repository
12+
uses: actions/checkout@v2
13+
14+
- name: Run pdk validate
15+
uses: puppets-epic-show-theatre/action-pdk-validate@v1
16+
with:
17+
puppet-version: "8"
18+
# [optional] A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
19+
# pe-version: ""
20+
# [optional] A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".
21+
22+
test-8:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Clone repository
26+
uses: actions/checkout@v2
27+
28+
- name: Run unit tests
29+
uses: puppets-epic-show-theatre/action-pdk-test-unit@v1
30+
with:
31+
puppet-version: "8"
32+
# [optional] A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
33+
# pe-version: ""
34+
# [optional] A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".

0 commit comments

Comments
 (0)