From 4d6ee87e7fea50fc8d5ab7cf334488da296e1378 Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:20:04 -0700 Subject: [PATCH 1/3] ci: add ability to select which step to debug --- .github/workflows/build-test-lint.yaml | 17 ++++++++++------- .github/workflows/deploy.yaml | 11 ++++++----- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-test-lint.yaml b/.github/workflows/build-test-lint.yaml index 60893cbd7..f2d9d4a6a 100644 --- a/.github/workflows/build-test-lint.yaml +++ b/.github/workflows/build-test-lint.yaml @@ -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" @@ -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' diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 45d31ca48..1b93de62e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 From 3aa589251ead1e918ec23bd4a2791b51ceafd409 Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:24:40 -0700 Subject: [PATCH 2/3] default to empty selection --- .github/workflows/build-test-lint.yaml | 1 + .github/workflows/deploy.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-test-lint.yaml b/.github/workflows/build-test-lint.yaml index f2d9d4a6a..bd953cb04 100644 --- a/.github/workflows/build-test-lint.yaml +++ b/.github/workflows/build-test-lint.yaml @@ -13,6 +13,7 @@ on: required: false description: 'Pause the selected step to debug using tmate' type: choice + default: '' options: - build - test diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1b93de62e..45f84dc72 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,6 +16,7 @@ on: description: 'Pause the selected step to debug using tmate' required: false type: choice + default: '' options: - deploy From 4dd26a7838b233331f609486434e9ca9595ae56f Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:25:44 -0700 Subject: [PATCH 3/3] add empty option --- .github/workflows/build-test-lint.yaml | 1 + .github/workflows/deploy.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-test-lint.yaml b/.github/workflows/build-test-lint.yaml index bd953cb04..85bee3e9d 100644 --- a/.github/workflows/build-test-lint.yaml +++ b/.github/workflows/build-test-lint.yaml @@ -15,6 +15,7 @@ on: type: choice default: '' options: + - '' - build - test - lint diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 45f84dc72..0e28ac469 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,6 +18,7 @@ on: type: choice default: '' options: + - '' - deploy jobs: