Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04 #850

Merged
merged 4 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/nightly_ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "Nightly Test on Ubuntu Github Runners"

on:
schedule:
- cron: "0 0 * * *"

jobs:
Acceptance:
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
collection:
- puppet6-nightly
- puppet7-nightly

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout Source
uses: actions/checkout@v2

- name: Activate Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"

- name: Cache gems
uses: actions/cache@v2
with:
path: vendor/gems
key: ${{ runner.os }}-pr-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-pr-
${{ runner.os }}-

- name: Prepare inventory file
run: |
cat <<EOF >> spec/fixtures/litmus_inventory.yaml
---
version: 2
groups:
- name: local
targets:
- uri: litmus_localhost
config:
transport: local
- name: ssh_nodes
targets: []
- name: winrm_nodes
targets: []
EOF

- name: Install gems and puppet agent
run: |
bundle install
sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'

- name: Install module
run: bundle exec rake 'litmus:install_module'

- name: Run acceptance tests
run: sudo -u root env "PATH=$PATH" bundle exec rake 'litmus:acceptance:localhost'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Test on Ubuntu Github Runners"
name: "PR Test on Ubuntu Github Runners"

on: [pull_request]

Expand All @@ -10,6 +10,7 @@ jobs:
platform:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
collection:
- puppet6-nightly
- puppet7-nightly
Expand All @@ -21,7 +22,7 @@ jobs:
uses: actions/checkout@v2

- name: Activate Ruby 2.7
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"

Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04"
"20.04",
"22.04"
]
},
{
Expand Down