addons:
  apt:
    sources:
      - chef-current-xenial
    packages:
      - chef-workstation

install: echo "skip bundle install"

env:
  - CHEF_LICENSE=accept

branches:
  only:
    - master

services: docker

env:
  matrix:
  - INSTANCE=keys-centos-7
  - INSTANCE=service-systemd-centos-7
  - INSTANCE=service-systemd-fedora-latest
  - INSTANCE=service-systemd-debian-9
  - INSTANCE=service-systemd-debian-10
  - INSTANCE=service-systemd-ubuntu-1604
  - INSTANCE=service-systemd-ubuntu-1804
  - INSTANCE=service-systemd-opensuse-leap-15

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 kitchen verify ${INSTANCE}

matrix:
  include:
    - script:
      - chef exec delivery local all
      env:
        - UNIT_AND_LINT=1
        - CHEF_LICENSE=accept

addons:
  apt:
    sources:
      - chef-current-xenial
    packages:
      - chef-workstation

install: echo "skip bundle install"

env:
  - CHEF_LICENSE=accept

branches:
  only:
    - master

services: docker

env:
  matrix:
  - INSTANCE=keys-centos-7
  - INSTANCE=service-systemd-centos-7
  - INSTANCE=service-systemd-fedora-latest
  - INSTANCE=service-systemd-debian-9
  - INSTANCE=service-systemd-debian-10
  - INSTANCE=service-systemd-ubuntu-1604
  - INSTANCE=service-systemd-ubuntu-1804
  - INSTANCE=service-systemd-opensuse-leap-15

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 kitchen verify ${INSTANCE}

Handle lint / unit only in GitHub Actions
Handle lint / unit only in GitHub Actions

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
