Skip to content

Commit 464d81f

Browse files
committed
chore: migrate to Policyfile
1 parent dc29e0e commit 464d81f

9 files changed

Lines changed: 26 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: ci
88

99
jobs:
1010
lint-unit:
11-
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@6.0.0
11+
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@8.0.1
1212
permissions:
1313
checks: write
1414
pull-requests: write
@@ -43,7 +43,7 @@ jobs:
4343
- name: Check out code
4444
uses: actions/checkout@v6
4545
- name: Install Cinc Workstation
46-
uses: sous-chefs/.github/.github/actions/install-workstation@6.0.0
46+
uses: sous-chefs/.github/.github/actions/install-workstation@8.0.1
4747
- name: Dokken
4848
uses: actionshub/test-kitchen@3.0.0
4949
env:

.github/workflows/conventional-commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: 'Validate PR'
77

88
jobs:
99
conventional-commits:
10-
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@6.0.0
10+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@8.0.1
1111
permissions:
1212
pull-requests: read
1313
secrets: inherit

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- name: Check out code
2020
uses: actions/checkout@v6
2121
- name: Install Cinc Workstation
22-
uses: sous-chefs/.github/.github/actions/install-workstation@6.0.0
22+
uses: sous-chefs/.github/.github/actions/install-workstation@8.0.1
2323
- name: Install cookbooks
24-
run: berks install
24+
run: chef install Policyfile.rb

.github/workflows/prevent-file-change.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: 'Prevent file change'
77

88
jobs:
99
prevent-file-change:
10-
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@6.0.0
10+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@8.0.1
1111
permissions:
1212
pull-requests: write
1313
secrets:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
release:
19-
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@6.0.0
19+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@8.0.1
2020
secrets:
2121
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
2222
supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }}

Berksfile

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

Policyfile.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# frozen_string_literal: true
2+
3+
name 'atlantis'
4+
5+
default_source :supermarket
6+
7+
run_list 'test::default'
8+
9+
cookbook 'atlantis', path: '.'
10+
cookbook 'test', path: './test/cookbooks/test'
11+
12+
Dir.children('./test/cookbooks/test/recipes').grep(/\.rb\z/).sort.each do |recipe|
13+
recipe_name = File.basename(recipe, '.rb')
14+
15+
named_run_list recipe_name.to_sym, "test::#{recipe_name}"
16+
end

chefignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ test/*
8383
*/.hg/*
8484
*/.svn/*
8585

86-
# Berkshelf #
87-
#############
88-
Berksfile
89-
Berksfile.lock
86+
# Dependency cache #
87+
####################
9088
cookbooks/*
9189
tmp
9290

@@ -98,7 +96,6 @@ Gemfile.lock
9896

9997
# Policyfile #
10098
##############
101-
Policyfile.rb
10299
Policyfile.lock.json
103100

104101
# Documentation #

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

0 commit comments

Comments
 (0)