Skip to content

Commit

Permalink
debug pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Jul 17, 2024
1 parent d12b225 commit ab0c718
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ 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

env:
REGISTRY: ghcr.io
Expand All @@ -22,7 +27,7 @@ env:

jobs:
build:
uses: scientist-softserv/actions/.github/workflows/build.yaml@test-debug-step-selection-in-ci
uses: scientist-softserv/actions/.github/workflows/build.yaml@choose-which-step-to-debug-with-tmate
secrets: inherit
with:
platforms: "linux/amd64" # "linux/amd64,linux/arm64"
Expand All @@ -32,20 +37,20 @@ jobs:

lint:
needs: build
uses: scientist-softserv/actions/.github/workflows/lint.yaml@test-debug-step-selection-in-ci
uses: scientist-softserv/actions/.github/workflows/lint.yaml@choose-which-step-to-debug-with-tmate
with:
webTarget: hyku-web
workerTarget: hyku-worker
rubocop_cmd: "bundle exec rubocop --parallel --format progress"

test:
needs: build
uses: scientist-softserv/actions/.github/workflows/test.yaml@test-debug-step-selection-in-ci
uses: scientist-softserv/actions/.github/workflows/test.yaml@choose-which-step-to-debug-with-tmate
with:
confdir: '/app/samvera/hyrax-webapp/solr/conf'
rspec_cmd: "gem install semaphore_test_boosters && bundle && rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL"

reports:
if: always()
needs: [test, lint]
uses: scientist-softserv/actions/.github/workflows/report.yaml@test-debug-step-selection-in-ci
uses: scientist-softserv/actions/.github/workflows/report.yaml@choose-which-step-to-debug-with-tmate

0 comments on commit ab0c718

Please sign in to comment.