Skip to content

Commit

Permalink
add tmate action debugging (#512)
Browse files Browse the repository at this point in the history
Enable by triggering a manual test run. See https://github.com/marketplace/actions/debugging-with-tmate
[skip ci]
  • Loading branch information
marxide authored Apr 30, 2021
1 parent 175d336 commit 836e5a6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: test-suite

on: [pull_request]
on:
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the tests with tmate debugging enabled'
required: false
default: 'false'
pull_request:

env:
db_password: 'postgres'
Expand All @@ -17,6 +24,10 @@ jobs:
steps:
- uses: actions/checkout@v2

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

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.FORCED_PHOT_DEPLOY_KEY }}
Expand Down

0 comments on commit 836e5a6

Please sign in to comment.