summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpowell-progress <104777878+tpowell-progress@users.noreply.github.com>2023-01-27 06:56:16 -0800
committerGitHub <noreply@github.com>2023-01-27 09:56:16 -0500
commit30599c7b2449dee43d8e9938c5bb3bd89c9dda26 (patch)
treefd73e2b4a80272736c5ca37d087e74689c51934e
parent18b757c76b270c8a719341d00cda4927a6983a6c (diff)
downloadchef-30599c7b2449dee43d8e9938c5bb3bd89c9dda26.tar.gz
Fix kitchen tests for Amazon Linux 2 and (#13533)
* Fix kitchen tests for Amazon Linux 2 and Oracle Linux 7: INFC-384 and INFC-385 * Add a description of why we're locking to Ubuntu 20.04 for certain platforms Signed-off-by: Thomas Powell <powell@progress.com>
-rw-r--r--.github/workflows/kitchen.yml28
1 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index d305ffb517..f5441d7a4e 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -93,7 +93,6 @@ jobs:
fail-fast: false
matrix:
os:
- - 'amazonlinux-2'
- 'centos-6'
- 'centos-7'
- 'centos-8'
@@ -102,7 +101,6 @@ jobs:
- 'debian-11'
- 'fedora-latest'
- 'opensuse-leap-15'
- - 'oraclelinux-7'
- 'oraclelinux-8'
- 'ubuntu-1804'
- 'ubuntu-2004'
@@ -124,3 +122,29 @@ jobs:
working-directory: kitchen-tests
run: |
bundle exec kitchen test end-to-end-${{ matrix.os }}
+ # Amazon Linux 2 and Oracle Linux 7 dokken images have systemctl issues
+ # on Ubuntu 22.04 host platforms and later. Pin these to Ubuntu 20.04
+ linux-2004-host:
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - 'amazonlinux-2'
+ - 'oraclelinux-7'
+ runs-on: ubuntu-20.04
+ env:
+ FORCE_FFI_YAJL: ext
+ CHEF_LICENSE: accept-no-persist
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v3
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: "2.7"
+ bundler-cache: true
+ working-directory: kitchen-tests
+ - name: Run Test Kitchen
+ working-directory: kitchen-tests
+ run: |
+ bundle exec kitchen test end-to-end-${{ matrix.os }}