diff options
author | Tim Smith <tsmith@chef.io> | 2021-05-03 22:47:36 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2021-05-07 13:42:56 -0700 |
commit | ce013e7000fb0d462ee41ebdfcdbe13250edbadd (patch) | |
tree | 1f342eea3b7e66b54982237dc78411a2acd3c916 | |
parent | 5614d3b96887f5c6efbb85b58f814e7f48066caf (diff) | |
download | chef-ce013e7000fb0d462ee41ebdfcdbe13250edbadd.tar.gz |
Try running Linux dokken tests in GitHub Actions
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | .expeditor/verify.pipeline.yml | 228 | ||||
-rw-r--r-- | .github/workflows/kitchen.yml | 35 |
2 files changed, 35 insertions, 228 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 3dee018377..38c932f195 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -313,234 +313,6 @@ steps: docker: image: rubydistros/ubuntu-18.04:3.0 -######################################################################### - # START TEST KITCHEN ONLY -######################################################################### - -- label: "Kitchen: Amazon Linux 2" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-amazonlinux-2 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Ubuntu 18.04" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-ubuntu-1804 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Ubuntu 20.04" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-ubuntu-2004 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Ubuntu 21.04" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-ubuntu-2104 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Debian 9" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-debian-9 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Debian 10" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-debian-10 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Debian 11" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-debian-11 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: CentOS 6" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-centos-6 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: CentOS 7" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-centos-7 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: CentOS 8" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-centos-8 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Oracle Linux 7" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-oraclelinux-7 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Oracle Linux 8" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-oraclelinux-8 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: Fedora latest" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-fedora-latest - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - -- label: "Kitchen: openSUSE Leap: 15" - commands: - - .expeditor/scripts/bk_linux_exec.sh - - . /var/lib/buildkite-agent/.asdf/asdf.sh - - cd kitchen-tests - - bundle exec kitchen test end-to-end-opensuse-leap-15 - artifact_paths: - - $PWD/.kitchen/logs/kitchen.log - env: - KITCHEN_YAML: kitchen.yml - expeditor: - executor: - linux: - privileged: true - single-use: true - - label: ":habicat: Linux plan" commands: - sudo ./.expeditor/scripts/install-hab.sh 'x86_64-linux' 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 }} |