|
| 1 | +on: |
| 2 | + pull_request: |
| 3 | + |
| 4 | +jobs: |
| 5 | + markdownlint: |
| 6 | + uses: Stromweld/github-workflows/.github/workflows/markdownlint.yml@main |
| 7 | + |
| 8 | + yamllint: |
| 9 | + uses: Stromweld/github-workflows/.github/workflows/yamllint.yml@main |
| 10 | + |
| 11 | + jsonlint: |
| 12 | + uses: Stromweld/github-workflows/.github/workflows/jsonlint.yml@main |
| 13 | + |
| 14 | + cookstylelint: |
| 15 | + uses: Stromweld/github-workflows/.github/workflows/cookstylelint.yml@main |
| 16 | + |
| 17 | + integration-dokken: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + strategy: |
| 20 | + matrix: |
| 21 | + os: |
| 22 | + - centos-7 |
| 23 | + - centos-8 |
| 24 | + - almalinux-8 |
| 25 | +# - almalinux-9 # TODO: uncomment this when almalinux-9 dokken image is fixed |
| 26 | + - ubuntu-1804 |
| 27 | + - ubuntu-2004 |
| 28 | + - ubuntu-2204 |
| 29 | + suite: |
| 30 | + - chef-workstation |
| 31 | + - inspec |
| 32 | + - chef-server |
| 33 | + - chef-automatev2 |
| 34 | + exclude: |
| 35 | + - os: centos-7 |
| 36 | + suite: chef-server |
| 37 | + - os: ubuntu-2204 |
| 38 | + suite: chef-server |
| 39 | + fail-fast: false |
| 40 | + steps: |
| 41 | + - name: Check out code |
| 42 | + uses: actions/checkout@main |
| 43 | + - name: Install Chef |
| 44 | + uses: actionshub/chef-install@main |
| 45 | + - name: Test-Kitchen Converge |
| 46 | + uses: actionshub/test-kitchen@main |
| 47 | + with: |
| 48 | + suite: ${{ matrix.suite }} |
| 49 | + os: ${{ matrix.os }} |
| 50 | + action: converge |
| 51 | + env: |
| 52 | + CHEF_LICENSE: accept-no-persist |
| 53 | + KITCHEN_LOCAL_YAML: kitchen.dokken.yml |
| 54 | + continue-on-error: false |
| 55 | + - name: Test-Kitchen Verify |
| 56 | + uses: actionshub/test-kitchen@main |
| 57 | + with: |
| 58 | + suite: ${{ matrix.suite }} |
| 59 | + os: ${{ matrix.os }} |
| 60 | + action: verify |
| 61 | + env: |
| 62 | + CHEF_LICENSE: accept-no-persist |
| 63 | + KITCHEN_LOCAL_YAML: kitchen.dokken.yml |
| 64 | + |
| 65 | + |
| 66 | + integration-windows-2016: |
| 67 | + runs-on: windows-2016 |
| 68 | + strategy: |
| 69 | + matrix: |
| 70 | + os: |
| 71 | + - windows-2016 |
| 72 | + suite: |
| 73 | + - chef-workstation |
| 74 | + - inspec |
| 75 | + fail-fast: false |
| 76 | + steps: |
| 77 | + - name: Check windows Version |
| 78 | + run: systeminfo |
| 79 | + - name: Check out code |
| 80 | + uses: actions/checkout@main |
| 81 | + - name: Install Chef |
| 82 | + uses: actionshub/chef-install@main |
| 83 | + - name: Test-Kitchen Converge |
| 84 | + uses: actionshub/test-kitchen@main |
| 85 | + with: |
| 86 | + suite: ${{ matrix.suite }} |
| 87 | + os: ${{ matrix.os }} |
| 88 | + action: converge |
| 89 | + env: |
| 90 | + CHEF_LICENSE: accept-no-persist |
| 91 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 92 | + continue-on-error: false |
| 93 | + - name: Test-Kitchen Verify |
| 94 | + uses: actionshub/test-kitchen@main |
| 95 | + with: |
| 96 | + suite: ${{ matrix.suite }} |
| 97 | + os: ${{ matrix.os }} |
| 98 | + action: verify |
| 99 | + env: |
| 100 | + CHEF_LICENSE: accept-no-persist |
| 101 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 102 | + |
| 103 | + integration-windows-2019: |
| 104 | + runs-on: windows-2019 |
| 105 | + strategy: |
| 106 | + matrix: |
| 107 | + os: |
| 108 | + - windows-2019 |
| 109 | + suite: |
| 110 | + - chef-workstation |
| 111 | + - inspec |
| 112 | + fail-fast: false |
| 113 | + steps: |
| 114 | + - name: Check windows Version |
| 115 | + run: systeminfo |
| 116 | + - name: Check out code |
| 117 | + uses: actions/checkout@main |
| 118 | + - name: Install Chef |
| 119 | + uses: actionshub/chef-install@main |
| 120 | + - name: Test-Kitchen Converge |
| 121 | + uses: actionshub/test-kitchen@main |
| 122 | + with: |
| 123 | + suite: ${{ matrix.suite }} |
| 124 | + os: ${{ matrix.os }} |
| 125 | + action: converge |
| 126 | + env: |
| 127 | + CHEF_LICENSE: accept-no-persist |
| 128 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 129 | + continue-on-error: false |
| 130 | + - name: Test-Kitchen Verify |
| 131 | + uses: actionshub/test-kitchen@main |
| 132 | + with: |
| 133 | + suite: ${{ matrix.suite }} |
| 134 | + os: ${{ matrix.os }} |
| 135 | + action: verify |
| 136 | + env: |
| 137 | + CHEF_LICENSE: accept-no-persist |
| 138 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 139 | + |
| 140 | + integration-windows-2022: |
| 141 | + runs-on: windows-2022 |
| 142 | + strategy: |
| 143 | + matrix: |
| 144 | + os: |
| 145 | + - windows-2022 |
| 146 | + suite: |
| 147 | + - chef-workstation |
| 148 | + - inspec |
| 149 | + fail-fast: false |
| 150 | + steps: |
| 151 | + - name: Check windows Version |
| 152 | + run: systeminfo |
| 153 | + - name: Check out code |
| 154 | + uses: actions/checkout@main |
| 155 | + - name: Install Chef |
| 156 | + uses: actionshub/chef-install@main |
| 157 | + - name: Test-Kitchen Converge |
| 158 | + uses: actionshub/test-kitchen@main |
| 159 | + with: |
| 160 | + suite: ${{ matrix.suite }} |
| 161 | + os: ${{ matrix.os }} |
| 162 | + action: converge |
| 163 | + env: |
| 164 | + CHEF_LICENSE: accept-no-persist |
| 165 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 166 | + continue-on-error: false |
| 167 | + - name: Test-Kitchen Verify |
| 168 | + uses: actionshub/test-kitchen@main |
| 169 | + with: |
| 170 | + suite: ${{ matrix.suite }} |
| 171 | + os: ${{ matrix.os }} |
| 172 | + action: verify |
| 173 | + env: |
| 174 | + CHEF_LICENSE: accept-no-persist |
| 175 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 176 | + |
| 177 | + integration-macos-latest: |
| 178 | + runs-on: macos-latest |
| 179 | + strategy: |
| 180 | + matrix: |
| 181 | + os: |
| 182 | + - macos-latest |
| 183 | + suite: |
| 184 | + - chef-workstation |
| 185 | + - inspec |
| 186 | + fail-fast: false |
| 187 | + steps: |
| 188 | + - name: Check macOS Version |
| 189 | + run: sw_vers |
| 190 | + - name: Check out code |
| 191 | + uses: actions/checkout@main |
| 192 | + - name: Install Chef |
| 193 | + uses: actionshub/chef-install@main |
| 194 | + - name: Test-Kitchen Converge |
| 195 | + uses: actionshub/test-kitchen@main |
| 196 | + with: |
| 197 | + suite: ${{ matrix.suite }} |
| 198 | + os: ${{ matrix.os }} |
| 199 | + action: converge |
| 200 | + env: |
| 201 | + CHEF_LICENSE: accept-no-persist |
| 202 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 203 | + continue-on-error: false |
| 204 | + - name: Test-Kitchen Verify |
| 205 | + uses: actionshub/test-kitchen@main |
| 206 | + with: |
| 207 | + suite: ${{ matrix.suite }} |
| 208 | + os: ${{ matrix.os }} |
| 209 | + action: verify |
| 210 | + env: |
| 211 | + CHEF_LICENSE: accept-no-persist |
| 212 | + KITCHEN_LOCAL_YAML: kitchen.exec.yml |
| 213 | + |
| 214 | + check: |
| 215 | + if: always() |
| 216 | + needs: |
| 217 | + - markdownlint |
| 218 | + - yamllint |
| 219 | + - jsonlint |
| 220 | + - cookstylelint |
| 221 | + - integration-dokken |
| 222 | + - integration-windows-2016 |
| 223 | + - integration-windows-2019 |
| 224 | + - integration-windows-2022 |
| 225 | + - integration-macos-latest |
| 226 | + runs-on: Ubuntu-latest |
| 227 | + steps: |
| 228 | + - name: Decide whether the needed jobs succeeded or failed |
| 229 | + uses: re-actors/alls-green@main |
| 230 | + with: |
| 231 | + allowed-failures: |
| 232 | + allowed-skips: |
| 233 | + jobs: ${{ toJSON(needs) }} |
0 commit comments