diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e65c5b9..de7ad27 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -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 @@ -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" diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..94ff29c --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.1 diff --git a/kitchen.yml b/kitchen.yml index 4490398..b8c8237 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -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: @@ -84,3 +88,8 @@ suites: - centos driver: ipv6: true + + - name: chocolatey + includes: windows-2019 + run_list: + - recipe[chocolatey::default]