Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Amazon Linux 2 kitchen tests on ubuntu-20.04 #13531

Merged
merged 3 commits into from
Jan 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ jobs:
fail-fast: false
matrix:
os:
- 'amazonlinux-2'
- 'centos-6'
- 'centos-7'
- 'almalinux-8'
Expand Down Expand Up @@ -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:
tpowell-progress marked this conversation as resolved.
Show resolved Hide resolved
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 }}