Skip to content

Assign to the right github team #63

Assign to the right github team

Assign to the right github team #63

Workflow file for this run

---
name: ci
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cookstyle:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Chef Workstation
uses: actionshub/chef-install@main
- name: Run Cookstyle
run: chef exec rake cookstyle
env:
CHEF_LICENSE: accept-no-persist
markdownlint-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: ".markdownlint.yaml"
rspec:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Chef Workstation
uses: actionshub/chef-install@main
- name: Install Spec gems
run: chef gem install deepsort
env:
CHEF_LICENSE: accept-no-persist
- name: Rspec
run: chef exec rake spec
env:
CHEF_LICENSE: accept-no-persist
yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run YAML Lint
uses: actionshub/yamllint@main
integration:
needs:
- cookstyle
- markdownlint-cli
- rspec
- yamllint
runs-on: ubuntu-latest
strategy:
matrix:
os:
- 'centos-7'
- 'centos-8'
- 'debian-10'
- 'debian-11'
- 'ubuntu-2004'
- 'ubuntu-2204'
suite:
- 'authoritative-multi'
- 'authoritative-postgres'
- 'recursor-multi'
fail-fast: false
continue-on-error: ${{ matrix.os == 'centos-8' }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Chef Workstation
uses: actionshub/chef-install@main
- name: Install Spec gems
run: chef gem install deepsort
env:
CHEF_LICENSE: accept-no-persist
- name: Run Test Kitchen
uses: actionshub/test-kitchen@main
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
- name: Debug
if: failure()
run: |
set -x
sudo journalctl -l --since today
KITCHEN_LOCAL_YAML=kitchen.yml /usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l"