Skip to content

Commit

Permalink
Add debugging to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Ross committed Nov 14, 2023
1 parent b2c7e7b commit b3903a4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
inputs:
ssh_debug:
description: Launch shell for interactive debugging?
type: boolean
required: true
default: false

name: R-CMD-check

Expand Down Expand Up @@ -65,6 +72,12 @@ jobs:
gp
shell: Rscript {0}
continue-on-error: true
- name: Launch a temporary interactive debugging session
uses: mxschmitt/action-tmate@v3.16
if: always() && inputs.ssh_debug
with:
detached: true


# - uses: r-lib/actions/check-r-package@v2
# with:
Expand Down Expand Up @@ -109,3 +122,9 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true

- name: Launch a temporary interactive debugging session
uses: mxschmitt/action-tmate@v3.16
if: always() && inputs.ssh_debug
with:
detached: true

0 comments on commit b3903a4

Please sign in to comment.