Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add ability to select which step to debug #1039

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@ 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
default: ''
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 +31,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'

13 changes: 8 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ 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
default: ''
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
Loading