From 66455b921b0a4c05ed0bfdf0d572a7095135d2db Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Fri, 25 Aug 2023 23:52:15 -0500 Subject: [PATCH] (main) add ci workflow and provision --- .fixtures.yml | 12 +++++++++--- .github/workflows/ci.yaml | 17 +++++++++++++++++ metadata.json | 38 +++++++++++++++++++++++++++++++------- provision.yaml | 29 +++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/ci.yaml create mode 100644 provision.yaml diff --git a/.fixtures.yml b/.fixtures.yml index 8507ed8..b72ed4c 100644 --- a/.fixtures.yml +++ b/.fixtures.yml @@ -1,8 +1,14 @@ fixtures: forge_modules: - facts: + ruby_task_helper: repo: "puppetlabs/ruby_task_helper" - ref: "0.4.0" + ref: "0.6.1" ruby_plugin_helper: repo: "puppetlabs/ruby_plugin_helper" - ref: "0.1.0" + ref: "0.2.0" + repositories: + puppet_agent: + repo: https://github.com/puppetlabs/puppetlabs-puppet_agent.git + ref: v4.13.0 + facts: https://github.com/puppetlabs/puppetlabs-facts.git + provision: https://github.com/puppetlabs/provision.git diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..68d3fd9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,17 @@ +name: "ci" + +on: + pull_request: + branches: + - 'main' + workflow_dispatch: + +jobs: + Spec: + uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main" + secrets: "inherit" + + Acceptance: + needs: Spec + uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main" + secrets: "inherit" diff --git a/metadata.json b/metadata.json index 4d5feba..f98d0d0 100644 --- a/metadata.json +++ b/metadata.json @@ -19,7 +19,8 @@ { "operatingsystem": "CentOS", "operatingsystemrelease": [ - "7" + "7", + "8" ] }, { @@ -31,7 +32,9 @@ { "operatingsystem": "RedHat", "operatingsystemrelease": [ - "8" + "7", + "8", + "9" ] }, { @@ -40,23 +43,44 @@ "7" ] }, + { + "operatingsystem": "SLES", + "operatingsystemrelease": [ + "12", + "15" + ] + }, + { + "operatingsystem": "AlmaLinux", + "operatingsystemrelease": [ + "8" + ] + }, + { + "operatingsystem": "Rocky", + "operatingsystemrelease": [ + "8" + ] + }, { "operatingsystem": "Debian", "operatingsystemrelease": [ - "9" + "10", + "11" ] }, { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ - "18.04" + "20.04", + "22.04" ] }, { - "operatingsystem": "windows", + "operatingsystem": "Windows", "operatingsystemrelease": [ - "2019", - "10" + "10", + "2022" ] } ], diff --git a/provision.yaml b/provision.yaml new file mode 100644 index 0000000..9b956cd --- /dev/null +++ b/provision.yaml @@ -0,0 +1,29 @@ +--- +default: + provisioner: docker + images: + - litmusimage/ubuntu:22.04 +vagrant: + provisioner: vagrant + images: + - litmusimage/rockylinux:8 + - litmusimage/ubuntu:22.04 + - gusztavvargadr/windows-server +yum: + provisioner: docker + images: + - litmusimage/rockylinux:8 +apt: + provisioner: docker + images: + - litmusimage/ubuntu:22.04 +release_checks_7: + provisioner: abs + images: + - win-10-pro-x86_64 + - ubuntu-2004-x86_64 +release_checks_8: + provisioner: abs + images: + - win-10-pro-x86_64 + - ubuntu-2004-x86_64