Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Install Chef
uses: actionshub/chef-install@main
- name: Install cookbooks
run: berks install
run: chef install Policyfile.rb
9 changes: 0 additions & 9 deletions Berksfile

This file was deleted.

15 changes: 15 additions & 0 deletions Policyfile.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

name 'ruby_rbenv'

default_source :supermarket

run_list 'test::default'

cookbook 'ruby_rbenv', path: '.'
cookbook 'test', path: 'test/cookbooks/test'

Dir.entries('./test/cookbooks/test/recipes').select { |f| f.end_with?('.rb') }.each do |test|
test = test.delete_suffix('.rb')
named_run_list :"#{test}", "test::#{test}"
end
22 changes: 10 additions & 12 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,21 @@ suites:
provisioner:
enforce_idempotency: false
multiple_converge: 1
run_list:
- recipe[test::gem]
named_run_list: gem
- name: global
run_list:
- recipe[test::global]
provisioner:
named_run_list: global
- name: ruby_uninstall
provisioner:
enforce_idempotency: false
multiple_converge: 1
run_list:
- recipe[test::ruby_uninstall]
named_run_list: ruby_uninstall
- name: system_install
run_list:
- recipe[test::system_install]
provisioner:
named_run_list: system_install
- name: user_install
run_list:
- recipe[test::user_install]
provisioner:
named_run_list: user_install
- name: custom_group_install
run_list:
- recipe[test::custom_group_install]
provisioner:
named_run_list: custom_group_install
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'chefspec'
require 'chefspec/berkshelf'
require 'chefspec/policyfile'

RSpec.configure do |config|
config.color = true
Expand Down
Loading