summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-03 22:47:36 -0700
committerTim Smith <tsmith@chef.io>2021-05-07 13:42:56 -0700
commitce013e7000fb0d462ee41ebdfcdbe13250edbadd (patch)
tree1f342eea3b7e66b54982237dc78411a2acd3c916 /.github
parent5614d3b96887f5c6efbb85b58f814e7f48066caf (diff)
downloadchef-ce013e7000fb0d462ee41ebdfcdbe13250edbadd.tar.gz
Try running Linux dokken tests in GitHub Actions
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/kitchen.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index 20b07e3dec..5c3e6b74df 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -87,3 +87,38 @@ jobs:
sudo /opt/chef/embedded/bin/gem install berkshelf --no-doc
sudo /opt/chef/embedded/bin/berks vendor cookbooks
sudo /opt/chef/bin/chef-client -z -o end_to_end --chef-license accept-no-persist
+
+ linux:
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - 'amazonlinux-2'
+ - 'centos-7'
+ - 'centos-8'
+ - 'debian-9'
+ - 'debian-10'
+ - 'fedora-latest'
+ - 'opensuse-leap-15'
+ - 'ubuntu-1804'
+ - 'ubuntu-2004'
+ runs-on: ubuntu-latest
+ env:
+ BUNDLE_GEMFILE: kitchen-tests/Gemfile
+ FORCE_FFI_YAJL: ext
+ CHEF_LICENSE: accept-no-persist
+ steps:
+ - name: Install FFI
+ run: "sudo apt-get update; sudo apt-get install libffi-dev build-essential libssl-dev libreadline-dev zlib1g-dev -y"
+ - name: Check out code
+ uses: actions/checkout@master
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 2.7
+ bundler-cache: false
+ - name: Run Test Kitchen
+ run: |
+ cd kitchen-tests
+ sudo bundle install
+ sudo bundle exec kitchen test end-to-end-${{ matrix.os }}