Skip to content

Fix tests

Fix tests #540

Workflow file for this run

---
name: ci
"on":
pull_request:
push:
branches:
- main
jobs:
lint-unit:
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@89865ee56cd1c401b2e758f3b82cafab834ca9f7
permissions:
actions: write
checks: write
pull-requests: write
statuses: write
issues: write
with:
chef_workstation_version: 22.12.1024 # chef 17
integration:
needs: lint-unit
runs-on: ubuntu-latest
strategy:
matrix:
os:
- "almalinux-8"
- "centos-7"
- "centos-stream-8"
- "debian-10"
- "debian-11"
- "rockylinux-8"
- "ubuntu-1804"
- "ubuntu-2004"
suite:
- "installation-script-main"
- "installation-script-test"
- "installation-package"
- "installation-tarball"
- "install-and-stop"
exclude:
- os: debian-9
suite: installation-script-main
- os: debian-11
suite: installation-script-test
- os: almalinux-8
suite: installation-script-main
- os: almalinux-8
suite: installation-script-test
- os: rockylinux-8
suite: installation-script-main
- os: rockylinux-8
suite: installation-script-test
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/chef-install@2.0.4
- name: Dokken
uses: actionshub/test-kitchen@2.1.0
env:
CHEF_VERSION: 17
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
integration-amazonlinux:
needs: lint-unit
runs-on: ubuntu-20.04
strategy:
matrix:
os:
- amazonlinux-2
suite:
- "installation-tarball"
- "install-and-stop"
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/chef-install@2.0.4
- name: Dokken
uses: actionshub/test-kitchen@2.1.0
env:
CHEF_VERSION: 17
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
integration-smoke:
needs: lint-unit
runs-on: macos-latest
strategy:
matrix:
os:
- "almalinux-8"
- "centos-7"
- "centos-stream-8"
- "debian-10"
- "debian-11"
- "rockylinux-8"
- "ubuntu-1804"
- "ubuntu-2004"
suite:
- "smoke"
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Chef
uses: actionshub/chef-install@2.0.4
- name: Dokken
uses: actionshub/test-kitchen@2.1.0
env:
CHEF_VERSION: 17
CHEF_LICENSE: accept-no-persist
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}