Adapt jenkins agents to be able to use ros_buildfarm code #236
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: main | |
"on": | |
pull_request: | |
push: | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@main | |
- name: run yaml lint | |
uses: actionshub/yamllint@main | |
test: | |
runs-on: ubuntu-20.04 | |
name: 20.04 (${{ matrix.suite }} \ | |
chef ${{ matrix.chef_version }}) | |
strategy: | |
matrix: | |
suite: | |
- 'agent' | |
- 'agent-only' | |
- 'gpu-agent' | |
chef_version: | |
- '16' | |
- '17' | |
fail-fast: false | |
steps: | |
- name: check out code | |
uses: actions/[email protected] | |
- name: install chef | |
uses: actionshub/chef-install@main | |
- name: test-kitchen | |
uses: actionshub/[email protected] | |
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 (lightdm) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "cat /var/log/lightdm/lightdm.log" | |
- name: Print debug output on failure (X.log) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "cat /var/log/Xorg.0.log" | |
- name: Print debug output on failure (systemctl lightdm status) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "journalctl -u lightdm" | |
- name: Print debug output on failure (systemctl jenkins-agent status) | |
if: failure() | |
run: | | |
set -x | |
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec \ | |
${{ matrix.suite }}-${{ matrix.os }} \ | |
-c "journalctl -u jenkins-agent" |