Commit 820823e8 authored by Jason Field's avatar Jason Field

Migrate to actions

Signed-off-by: default avatarJason Field <jason@avon-lea.co.uk>
parent 1bce538a
---
jobs:
final:
docker:
- image: bash:latest
steps:
- run:
name: Finish cooking
command: echo "Finished cooking"
lint_and_unit: &lint_and_unit
- delivery
- danger
- lint-yaml
- lint-markdown
version: 2.1
orbs:
kitchen: sous-chefs/kitchen@2
workflows:
kitchen:
jobs:
- kitchen/yamllint:
name: lint-yaml
- kitchen/mdlint:
name: lint-markdown
- kitchen/danger:
name: danger
context: Danger
- kitchen/delivery:
name: delivery
- kitchen/dokken-single:
name: client-debian-8
suite: client-debian-8
requires: *lint_and_unit
- kitchen/dokken-single:
name: client-centos-7
suite: client-centos-7
requires: *lint_and_unit
- kitchen/dokken-single:
name: client-ubuntu-1604
suite: client-ubuntu-1604
requires: *lint_and_unit
- kitchen/dokken-single:
name: client-ubuntu-1804
suite: client-ubuntu-1804
requires: *lint_and_unit
- kitchen/dokken-single:
name: server-debian-8
suite: server-debian-8
requires: *lint_and_unit
- kitchen/dokken-single:
name: server-centos-7
suite: server-centos-7
requires: *lint_and_unit
- kitchen/dokken-single:
name: server-ubuntu-1604
suite: server-ubuntu-1604
requires: *lint_and_unit
- kitchen/dokken-single:
name: server-ubuntu-1804
suite: server-ubuntu-1804
requires: *lint_and_unit
- final:
requires:
- client-debian-8
- client-centos-7
- client-ubuntu-1604
- client-ubuntu-1804
- server-debian-8
- server-centos-7
- server-ubuntu-1604
- server-ubuntu-1804
---
name: ci
on:
pull_request:
push:
branches:
- master
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
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run yaml Lint
uses: actionshub/yamllint@master
mdl:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Markdown Lint
uses: actionshub/markdownlint@master
dokken:
needs: [mdl, yamllint, delivery]
runs-on: ubuntu-latest
strategy:
matrix:
os:
- 'debian-8'
- 'centos-7'
- 'ubuntu-1604'
- 'ubuntu-1804'
suite:
- 'client'
- 'server'
fail-fast: false
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 }}
final:
needs: [dokken]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
---
name: danger
on:
pull_request:
jobs:
danger:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Danger
uses: actionshub/danger-rb@master
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......@@ -5,6 +5,7 @@
### Added
- Migration to circleci testing
- Migration to github actions
### Changed
......
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