File tree Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- name : CI
2
+ name : kitchen
3
3
4
4
' on ' : [push, pull_request]
5
5
10
10
KITCHEN_LOCAL_YAML : kitchen.github.yml
11
11
12
12
jobs :
13
- build :
13
+ test :
14
14
runs-on : windows-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - uses : actions/cache@v1
17
+ - name : Check out code
18
+ uses : actions/checkout@v2
19
+ - name : Install Chef
20
+ uses :
actionshub/[email protected]
21
+ with :
22
+ project : chef
23
+ version : 16.10.8
24
+ - name : Add Chef bindir to PATH
25
+ uses : myci-actions/export-env-var-powershell@1
26
+ with :
27
+ name : PATH
28
+ value : " C:\\ opscode\\ chef\\ bin;\
29
+ C:\\ opscode\\ chef\\ embedded\\ bin;$env:PATH"
30
+ - name : Set up Bundler cache
31
+ uses : actions/cache@v1
19
32
with :
20
33
path : vendor/bundle
21
34
key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
22
35
restore-keys : |
23
36
${{ runner.os }}-gems-
24
- - shell : powershell
37
+ - name : Set up test user
25
38
run : |
26
39
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
27
40
New-LocalUser $env:machine_user -Password $password
28
41
Add-LocalGroupMember -Group "Administrators" -Member $env:machine_user
29
- - shell : powershell
42
+ - name : Set up WinRM
30
43
run : >
31
44
Set-WSManQuickConfig -Force;
32
45
Set-WSManInstance -ResourceURI winrm/config/service
33
46
-ValueSet @{AllowUnencrypted="true"}
34
- - run : gem install bundler --quiet --no-document
35
- - name : Bundle install
47
+ - name : Run Bundler
36
48
run : |
49
+ ruby --version
37
50
bundle config path vendor/bundle
38
51
bundle install --jobs 4 --retry 3
39
- - run : bundle exec kitchen test
52
+ - name : Run Test Kitchen
53
+ run : bundle exec kitchen verify
Original file line number Diff line number Diff line change 2
2
3
3
source 'https://rubygems.org'
4
4
5
- # Versions of `chef-utils` newer than `16.6.14` depend on Ruby 2.6 or
6
- # newer, but the GitHub Actions Windows image comes with Ruby 2.5.8
7
- gem 'chef-utils' , '~> 16.6.14'
8
5
# Use the latest version of `inspec` prior to `4.23.4`, which introduces a
9
6
# regression where the diff isn't displayed when comparing using `eq`.
10
7
gem 'inspec' , '~> 4.22.22'
Original file line number Diff line number Diff line change @@ -525,7 +525,6 @@ PLATFORMS
525
525
ruby
526
526
527
527
DEPENDENCIES
528
- chef-utils (~> 16.6.14 )
529
528
inspec (~> 4.22.22 )
530
529
kitchen-docker !
531
530
kitchen-inspec (>= 2.2.1 )
You can’t perform that action at this time.
0 commit comments