Skip to content

Commit

Permalink
Fix issues on Windows and add CI testing
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Albertson <[email protected]>
  • Loading branch information
ramereth committed Nov 10, 2021
1 parent bb12e39 commit 8a0d162
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@ jobs:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

integration-windows:
needs: [mdl, yamllint, delivery]
runs-on: windows-latest
strategy:
matrix:
os:
- 'windows-latest'
suite:
- 'default'
fail-fast: false

steps:
- name: Check out code
uses: actions/checkout@master
- name: Install Chef
uses: actionshub/chef-install@master
- name: test-kitchen
uses: actionshub/test-kitchen@master
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.exec.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

integration-macos:
needs: [mdl, yamllint, delivery]
runs-on: macos-latest
Expand All @@ -90,3 +115,12 @@ jobs:
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

final:
runs-on: ubuntu-latest
needs: [integration, integration-windows, integration-macos]
steps:
- run: echo ${{needs.integration.outputs}}
- run: echo ${{needs.integration-windows.outputs}}
- run: echo ${{needs.integration-macos.outputs}}

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This file is used to list changes made in each version of the users cookbook.

## Unreleased

- Fix issues on Windows and add CI testing

## 8.1.1 - *2021-08-30*

- Standardise files with files in sous-chefs/repo-management
Expand Down
1 change: 1 addition & 0 deletions kitchen.exec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ transport: { name: exec }

platforms:
- name: macos-latest
- name: windows-latest
10 changes: 10 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ platforms:
- name: opensuse-leap-15
- name: ubuntu-18.04
- name: ubuntu-20.04
- name: windows-2019
driver:
gui: false
box: tas50/windows_2019
customize:
cpus: 2
memory: 4096
transport:
name: winrm
elevated: true

suites:
- name: default
Expand Down

0 comments on commit 8a0d162

Please sign in to comment.