Skip to content

Commit f1b59b3

Browse files
authored
Merge pull request #850 from puppetlabs/pdksync_GH-cat-11/main/add_ubuntu_22.04_support
pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04
2 parents b90c738 + ee75c7c commit f1b59b3

File tree

3 files changed

+71
-3
lines changed

3 files changed

+71
-3
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "Nightly Test on Ubuntu Github Runners"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
Acceptance:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
platform:
13+
- ubuntu-18.04
14+
- ubuntu-20.04
15+
- ubuntu-22.04
16+
collection:
17+
- puppet6-nightly
18+
- puppet7-nightly
19+
20+
runs-on: ${{ matrix.platform }}
21+
22+
steps:
23+
- name: Checkout Source
24+
uses: actions/checkout@v2
25+
26+
- name: Activate Ruby 2.7
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: "2.7"
30+
31+
- name: Cache gems
32+
uses: actions/cache@v2
33+
with:
34+
path: vendor/gems
35+
key: ${{ runner.os }}-pr-${{ hashFiles('**/Gemfile') }}
36+
restore-keys: |
37+
${{ runner.os }}-pr-
38+
${{ runner.os }}-
39+
40+
- name: Prepare inventory file
41+
run: |
42+
cat <<EOF >> spec/fixtures/litmus_inventory.yaml
43+
---
44+
version: 2
45+
groups:
46+
- name: local
47+
targets:
48+
- uri: litmus_localhost
49+
config:
50+
transport: local
51+
- name: ssh_nodes
52+
targets: []
53+
- name: winrm_nodes
54+
targets: []
55+
EOF
56+
57+
- name: Install gems and puppet agent
58+
run: |
59+
bundle install
60+
sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'
61+
62+
- name: Install module
63+
run: bundle exec rake 'litmus:install_module'
64+
65+
- name: Run acceptance tests
66+
run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost'

.github/workflows/ubuntu18_pr.yaml renamed to .github/workflows/pr_test_ubuntu.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Test on Ubuntu Github Runners"
1+
name: "PR Test on Ubuntu Github Runners"
22

33
on: [pull_request]
44

@@ -10,6 +10,7 @@ jobs:
1010
platform:
1111
- ubuntu-18.04
1212
- ubuntu-20.04
13+
- ubuntu-22.04
1314
collection:
1415
- puppet6-nightly
1516
- puppet7-nightly
@@ -21,7 +22,7 @@ jobs:
2122
uses: actions/checkout@v2
2223

2324
- name: Activate Ruby 2.7
24-
uses: actions/setup-ruby@v1
25+
uses: ruby/setup-ruby@v1
2526
with:
2627
ruby-version: "2.7"
2728

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"operatingsystem": "Ubuntu",
3737
"operatingsystemrelease": [
3838
"18.04",
39-
"20.04"
39+
"20.04",
40+
"22.04"
4041
]
4142
},
4243
{

0 commit comments

Comments
 (0)