Skip to content

Commit 3f07660

Browse files
committed
chore: migrate to Policyfile
1 parent 4a7b33b commit 3f07660

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Install Chef
2222
uses: actionshub/chef-install@main
2323
- name: Install cookbooks
24-
run: berks install
24+
run: chef install Policyfile.rb

Berksfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

Policyfile.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
name 'ruby_build'
4+
5+
default_source :supermarket
6+
7+
run_list 'test::default'
8+
9+
cookbook 'ruby_build', path: '.'
10+
cookbook 'test', path: 'test/cookbooks/test'
11+
12+
Dir.entries('./test/cookbooks/test/recipes').select { |f| f.end_with?('.rb') }.each do |test|
13+
test = test.delete_suffix('.rb')
14+
named_run_list :"#{test}", "test::#{test}"
15+
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'chefspec'
2-
require 'chefspec/berkshelf'
2+
require 'chefspec/policyfile'
33
require_relative '../libraries/package_deps'
44

55
RSpec.configure do |config|

0 commit comments

Comments
 (0)