Commit 213fc464 authored by Tim Smith's avatar Tim Smith

Switch to Github actions for testing

Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 97aadd4d
### Cookbook version
[Version of the cookbook where you are encountering the issue]
### Chef-client version
[Version of chef-client in your environment]
### Platform Details
[Operating system distribution and release version. Cloud provider if running in the cloud]
### Scenario:
[What you are trying to achieve and you can't?]
### Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]
### Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]
### Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
### Description
[Describe what this change achieves]
### Issues Resolved
[List any existing issues this PR resolves]
### Check List
- [ ] All tests pass. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD>
- [ ] New functionality includes testing.
- [ ] New functionality has been documented in the README if applicable
- [ ] All commits have been signed for the Developer Certificate of Origin. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD>
---
name: Branch Cleanup
# This workflow is triggered on all closed pull requests.
# However the script does not do anything it a merge was not performed.
on:
pull_request:
types: [closed]
env:
NO_BRANCH_DELETED_EXIT_CODE: 0
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: jessfraz/branch-cleanup-action@master
name: delivery
---
name: ci
on: [push, pull_request]
on:
pull_request:
push:
branches:
- master
jobs:
delivery:
jobs:
delivery:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Chef Delivery
uses: actionshub/chef-delivery@master
env:
CHEF_LICENSE: accept-no-persist
runs-on: ubuntu-latest
dokken:
needs: [delivery]
runs-on: ubuntu-latest
strategy:
matrix:
os:
- 'amazonlinux'
- 'amazonlinux-2'
- 'centos-6'
- 'centos-7'
- 'centos-8'
suite:
- 'default'
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Chef Delivery
uses: actionshub/chef-delivery@master
env:
CHEF_LICENSE: accept-no-persist
\ No newline at end of file
steps:
- name: Check out code
uses: actions/checkout@master
- name: Install Chef
uses: actionshub/chef-install@master
- name: Dokken
uses: actionshub/kitchen-dokken@master
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
addons:
apt:
sources:
- chef-current-xenial
packages:
- chef-workstation
install: echo "skip bundle install"
branches:
only:
- master
services: docker
env:
matrix:
- INSTANCE=default-amazonlinux
- INSTANCE=default-amazonlinux-2
- INSTANCE=default-centos-6
- INSTANCE=default-centos-7
- INSTANCE=default-centos-8
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(chef shell-init bash)"
- chef --version
script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml CHEF_VERSION=${CHEF_VERSION} kitchen verify ${INSTANCE}
matrix:
include:
- script:
- chef exec delivery local all
env:
- CHEF_LICENSE=accept
- UNIT_AND_LINT=1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment