Skip to content

Commit

Permalink
Added in Provision check for various OS
Browse files Browse the repository at this point in the history
  • Loading branch information
sooyean-hoo committed Aug 19, 2024
1 parent 89d6473 commit 34f2948
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci_provisionchecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CI_provisionchecks"

on:
push:
branches:
- "main"
- "master"
- "dev_**"
- "release/**"
pull_request:
branches:
- "main"
- "master"
- "dev_**"
- "release/**"
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "sooyean-hoo/cat-github-actions/.github/workflows/module_acceptance_custom.yml@dev_sooyean"
secrets: "inherit"
with:
provision_environment__task: 'valentepuppet:provision_environment__task'
install_agent__task: 'valentepuppet:skipme'
install_module__task: 'valentepuppet:skipme'
acceptance__task: 'valentepuppet:skipme'
tear_down__task: 'valentepuppet:tear_down__task'

6 changes: 6 additions & 0 deletions spec/support/acceptance/vhelper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,18 @@ module LitmusHelpers
master.run_shell('uptime')
end

desc 'PlaceHolder for Skipping'
task :skipme, [:para1, :para2] do |_t, paras|
puts "Skipping...#{paras[:para1]}...#{paras[:para2]}......"
end

# Task For the Standard Breakdown of the Acceptance Test Stages.
desc 'Provision environment'
task :provision_environment__task, [:platformprovider, :platforms_images, :docker_runopts] do |_t, paras|
puts 'Provisioning.......... environment'

ENV['PROVISION_LIST'] = "acceptance_vbox_#{paras[:platforms_images].gsub(%r{[-.]}, '_').downcase}" # Set for Provision to pick up
puts ".......... PROVISION_LIST=#{ENV['PROVISION_LIST']}"

cmds = 'bash ./spec/support/acceptance/vhelper.rb exec "runChain + '
cmds += ' echoMsg == Prep Install Start + modify_sudo_settings +'
Expand Down

0 comments on commit 34f2948

Please sign in to comment.