Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows workflow #264

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
integration:
runs-on: ubuntu-latest
needs: [mdl, yamllint, chefstyle]
name: Kitchen Verify
name: Verify Hello Suite
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
Expand All @@ -54,3 +54,20 @@ jobs:
bundle exec bundle exec kitchen destroy hello
env:
CHEF_LICENSE: "accept-no-persist"

integration-windows:
runs-on: windows-2019
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: |
docker pull mcr.microsoft.com/windows/servercore:ltsc2019-amd64
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]