Unattended upgrades cherry-pick chef-osrf/pull/212 for build.ros2.org #293
Workflow file for this run
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: ci | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
branches: [latest] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Run yaml Lint | |
uses: actionshub/yamllint@main | |
kitchen-ci: | |
runs-on: ubuntu-20.04 | |
name: Kitchen CI | |
strategy: | |
matrix: | |
suite: | |
- 'agent' | |
- 'repo' | |
- 'jenkins' | |
chef_version: | |
- '17' | |
fail-fast: false | |
steps: | |
- name: Check out code | |
uses: actions/checkout@main | |
- name: Install Chef | |
uses: actionshub/chef-install@main | |
- name: Test-Kitchen | |
uses: actionshub/test-kitchen@main | |
with: | |
suite: ${{ matrix.suite }} | |
os: 'ubuntu-2004' | |
env: | |
CHEF_LICENSE: accept-no-persist | |
CHEF_VERSION: ${{ matrix.chef_version }} | |
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | |
- name: Print debug output (journalctl) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "journalctl -l" | |
- name: Print debug output on failure (jenkins.log) | |
if: failure() && matrix.suite == 'jenkins' | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "cat /var/log/jenkins/jenkins.log" | |
- name: Print debug output on failure (systemctl jenkins status) | |
if: failure() && matrix.suite == 'jenkins' | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "systemctl status jenkins" | |
- name: Print debug output (jenkins-agent) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "systemctl status jenkins-agent" |