Skip to content

hddtemp was removed from Ubuntu 22.04 and Debian 12 due to lack of ma… #82

hddtemp was removed from Ubuntu 22.04 and Debian 12 due to lack of ma…

hddtemp was removed from Ubuntu 22.04 and Debian 12 due to lack of ma… #82

Workflow file for this run

name: kitchen
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
# Expose matched filters as job 'cookbooks' output variable
cookbooks: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4
with:
path: boxcutter-chef-cookbooks
- uses: dorny/paths-filter@v3
id: filter
with:
working-directory: boxcutter-chef-cookbooks
# Use context to get the branch where commits were pushed.
# If there is only one long-lived branch (e.g. main),
# you can specify it directly.
# If its not configured, the repository default branch is used.
base: ${{ github.ref }}
filters: |
cookbooks/boxcutter_python: 'cookbooks/boxcutter_python/**'
cookbooks/boxcutter_anaconda: 'cookbooks/boxcutter_anaconda/**'
cookbooks/boxcutter_tailscale: 'cookbooks/boxcutter_tailscale/**'
# Job to run Test Kitchen on just the cookbooks that changed
build:
needs: changes
strategy:
matrix:
# Parse JSON array containing names of all filters matching any of changed files
# e.g. ['image1', 'image2'] if both image folders contains changes
cookbook: ${{ fromJSON(needs.changes.outputs.cookbooks) }}
if: ${{ needs.changes.outputs.cookbooks != '[]' && needs.changes.outputs.cookbooks != '' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: boxcutter-chef-cookbooks
- name: Checkout chef-cookbooks repository
uses: actions/checkout@v4
with:
repository: boxcutter/chef-cookbooks
path: chef-cookbooks
- name: Install Chef
uses: actionshub/chef-install@main
with:
omnitruckUrl: omnitruck.cinc.sh
project: cinc-workstation
version: 23.12.1055
- name: Run Kitchen
working-directory: boxcutter-chef-cookbooks/${{ matrix.cookbook }}
run: |
kitchen test
env:
CHEF_LICENSE: accept-no-persist
CHEF_VERSION: 18.4.2
CHEF_LOG_LEVEL: debug