Skip to content

Commit

Permalink
CI: Add tmate debugging (ros-drivers#181)
Browse files Browse the repository at this point in the history
This commit adds the option of running the GitHub workflow manually
(workflow_dispatch) and optionally enable tmate for SSH debugging.
  • Loading branch information
mintar authored May 2, 2024
1 parent 67f5956 commit b0096aa
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: Build and run ROS tests
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
build:
strategy:
Expand All @@ -10,6 +19,12 @@ jobs:
container:
image: ros:${{ matrix.rosdistro }}-ros-core
steps:
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
with:
detached: true
- name: Install apt dependencies
run: |
apt-get update
Expand Down

0 comments on commit b0096aa

Please sign in to comment.