summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpowell-progress <104777878+tpowell-progress@users.noreply.github.com>2023-01-27 07:04:05 -0800
committerGitHub <noreply@github.com>2023-01-27 10:04:05 -0500
commita368257590f158ec6cf3b9b99c53f5456f0768a6 (patch)
treeeb9931331705afbffb7d603e89a51cae160cef0c
parent6166da5cc30581f27b0de6ae3f3051912df9ffd4 (diff)
downloadchef-a368257590f158ec6cf3b9b99c53f5456f0768a6.tar.gz
Run Amazon Linux 2 kitchen tests on ubuntu-20.04 (#13531)
* Run ubuntu-20.04 workflows * amazon linux separation * 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.yml36
1 files changed, 35 insertions, 1 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index 589d572be4..2a715c8f95 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -186,7 +186,6 @@ jobs:
fail-fast: false
matrix:
os:
- - 'amazonlinux-2'
- 'centos-6'
- 'centos-7'
- 'almalinux-8'
@@ -224,3 +223,38 @@ jobs:
cd /home/runner/work/chef/chef/kitchen-tests
bundle install
bundle exec kitchen test end-to-end-${{ matrix.os }}
+ # Amazon Linux 2 has an issue with systemctl (throws a timedatectl error)
+ # if dokken container hosted on Ubuntu 22.04 or later. Lock to Ubuntu 20.04
+ # for now.
+ linux-2004-host:
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - 'amazonlinux-2'
+ ruby: ['3.1']
+ 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: "3.1"
+ bundler-cache: false
+ working-directory: kitchen-tests
+ - name: Run Test Kitchen
+ working-directory: kitchen-tests
+ run: |
+ ruby -v
+ echo "Which ruby are we using?"
+ which ruby
+ cd /home/runner/work/chef/chef
+ bundle install
+ gem install kitchen
+ cd /home/runner/work/chef/chef/kitchen-tests
+ bundle install
+ bundle exec kitchen test end-to-end-${{ matrix.os }}