Skip to content

Commit

Permalink
Add Windows workflow
Browse files Browse the repository at this point in the history
Relates to #257
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Apr 5, 2022
1 parent 00f0ba2 commit bdb63a9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,19 @@ jobs:
bundle exec bundle exec kitchen destroy hello
env:
CHEF_LICENSE: "accept-no-persist"

integration-windows:
runs-on: windows-latest
needs: [mdl, yamllint, chefstyle]
name: Verify Windows containers
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Create & Validate containers
run: |
bundle exec bundle exec kitchen test chocolatey
env:
CHEF_LICENSE: "accept-no-persist"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.1
9 changes: 9 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ platforms:
volumes:
- <%= ENV['PWD'] %>/.git:/opt/kitchen-dokken/.git

- name: windows-2019
driver:
image: mcr.microsoft.com/windows/servercore:ltsc2022-amd64

suites:
- name: default
includes:
Expand Down Expand Up @@ -84,3 +88,8 @@ suites:
- centos
driver:
ipv6: true

- name: chocolatey
includes: windows-2019
run_list:
- recipe[chocolatey::default]

0 comments on commit bdb63a9

Please sign in to comment.