Deprecate backend resource #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
jobs: | |
markdownlint: | |
uses: Stromweld/github-workflows/.github/workflows/markdown-lint.yml@main | |
yamllint: | |
uses: Stromweld/github-workflows/.github/workflows/yaml-lint.yml@main | |
jsonlint: | |
uses: Stromweld/github-workflows/.github/workflows/json-lint.yml@main | |
cookstylelint: | |
uses: Stromweld/github-workflows/.github/workflows/cookstyle-lint.yml@main | |
integration-dokken: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: | |
- centos-7 | |
- centos-8 | |
- almalinux-8 | |
- almalinux-9 | |
- ubuntu-2004 | |
- ubuntu-2204 | |
- ubuntu-2404 | |
suite: | |
- chef-workstation | |
- inspec | |
- chef-server | |
- chef-automatev2 | |
exclude: | |
- os: centos-7 | |
suite: chef-server | |
- os: ubuntu-2204 | |
suite: chef-server | |
fail-fast: false | |
steps: | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/chef-install@main | |
- name: Test-Kitchen Converge | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: converge | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | |
continue-on-error: false | |
- name: Test-Kitchen Verify | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: verify | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | |
integration-windows-2019: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
os: | |
- windows-2019 | |
suite: | |
- chef-workstation | |
- inspec | |
fail-fast: false | |
steps: | |
- name: Check windows Version | |
run: systeminfo | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/chef-install@main | |
- name: Test-Kitchen Converge | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: converge | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
continue-on-error: false | |
- name: Test-Kitchen Verify | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: verify | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
integration-windows-2022: | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
os: | |
- windows-2022 | |
suite: | |
- chef-workstation | |
- inspec | |
fail-fast: false | |
steps: | |
- name: Check windows Version | |
run: systeminfo | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/chef-install@main | |
- name: Test-Kitchen Converge | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: converge | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
continue-on-error: false | |
- name: Test-Kitchen Verify | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: verify | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
integration-macos-latest: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
suite: | |
- chef-workstation | |
- inspec | |
fail-fast: false | |
steps: | |
- name: Check macOS Version | |
run: sw_vers | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/chef-install@main | |
- name: Test-Kitchen Converge | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: converge | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
continue-on-error: false | |
- name: Test-Kitchen Verify | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
action: verify | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.exec.yml | |
check: | |
if: always() | |
needs: | |
- markdownlint | |
- yamllint | |
- jsonlint | |
- cookstylelint | |
- integration-dokken | |
- integration-windows-2019 | |
- integration-windows-2022 | |
- integration-macos-latest | |
runs-on: Ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@main | |
with: | |
allowed-failures: | |
allowed-skips: | |
jobs: ${{ toJSON(needs) }} |