Skip to content

Commit

Permalink
ci: Allow debugging test failures using tmate
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Sep 24, 2023
1 parent b75eb02 commit 3f57a4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
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:
check:
Expand Down Expand Up @@ -163,6 +169,10 @@ jobs:
env:
RUST_BACKTRACE: full

- name: Setup tmate session
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3

lints:
name: Lints
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3f57a4e

Please sign in to comment.