Convert cookbook to resource cookbook #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: kitchen | |
on: | |
pull_request: | |
paths-ignore: | |
- README.md | |
jobs: | |
cookstyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Chef | |
uses: actionshub/[email protected] | |
with: | |
version: ${{ inputs.chef_workstation_version }} | |
- name: Run Cookstyle | |
run: chef exec cookstyle --display-cop-names --extra-details | |
env: | |
CHEF_LICENSE: accept-no-persist | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Run yaml Lint | |
uses: actionshub/yamllint@main | |
dokken: | |
runs-on: ubuntu-latest | |
needs: [cookstyle, yamllint] | |
strategy: | |
matrix: | |
os: | |
- ubuntu-2204 | |
suite: | |
- "default" | |
fail-fast: false | |
steps: | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/[email protected] | |
- name: Test-Kitchen | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: ${{ matrix.os }} | |
env: | |
CHEF_LICENSE: accept-no-persist | |
KITCHEN_LOCAL_YAML: kitchen.dokken.yml |