Skip to content

Commit

Permalink
ci: add ability to select which step to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Jun 21, 2024
1 parent 3f8a5e5 commit 4d6ee87
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ on:
- main
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
debug_step:
required: false
default: false
description: 'Pause the selected step to debug using tmate'
type: choice
options:
- build
- test
- lint

jobs:
build:
uses: scientist-softserv/actions/.github/workflows/build.yaml@v0.0.22
uses: scientist-softserv/actions/.github/workflows/build.yaml@choose-which-step-to-debug-with-tmate
secrets: inherit
with:
platforms: "linux/amd64"
Expand All @@ -26,10 +29,10 @@ jobs:
workerTarget: hyku-worker
test:
needs: build
uses: scientist-softserv/actions/.github/workflows/test.yaml@v0.0.22
uses: scientist-softserv/actions/.github/workflows/test.yaml@choose-which-step-to-debug-with-tmate
lint:
needs: build
uses: scientist-softserv/actions/.github/workflows/lint.yaml@v0.0.22
uses: scientist-softserv/actions/.github/workflows/lint.yaml@choose-which-step-to-debug-with-tmate
with:
rubocop_cmd: 'bundle exec rubocop --parallel --format progress'

11 changes: 6 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ on:
- staging
- demo
- production
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
debug_step:
description: 'Pause the selected step to debug using tmate'
required: false
default: false
type: choice
options:
- deploy

jobs:
deploy:
uses: scientist-softserv/actions/.github/workflows/deploy.yaml@v0.0.22
uses: scientist-softserv/actions/.github/workflows/deploy.yaml@choose-which-step-to-debug-with-tmate
secrets: inherit

0 comments on commit 4d6ee87

Please sign in to comment.