Skip to content

Commit c4f22d7

Browse files
committed
ci: migrate yum tests to Policyfile
1 parent dc48fe6 commit c4f22d7

4 files changed

Lines changed: 15 additions & 11 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: sous-chefs/.github/.github/actions/install-workstation@9.0.0
2323
- name: Install cookbooks
24-
run: berks install
24+
run: chef install Policyfile.rb

Berksfile

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

Policyfile.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
name 'yum'
4+
5+
run_list 'recipe[test::default]'
6+
7+
cookbook 'yum', path: '.'
8+
cookbook 'yum-epel', git: 'https://github.com/sous-chefs/yum-epel.git', branch: 'main'
9+
cookbook 'yum-remi-chef', git: 'https://github.com/sous-chefs/yum-remi-chef.git', branch: 'main'
10+
cookbook 'test', path: './test/cookbooks/test'
11+
12+
named_run_list :default, 'recipe[test::default]'
13+
named_run_list :dnf_module, 'recipe[test::dnf_module]'

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'chefspec'
4-
require 'chefspec/berkshelf'
4+
require 'chefspec/policyfile'
55

66
RSpec.configure do |config|
77
config.color = true # Use color in STDOUT

0 commit comments

Comments
 (0)