Skip to content

Commit

Permalink
Add setUp phase for deps tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodCTaylor committed Jun 4, 2024
1 parent 1cc0779 commit c928094
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/debug-stuff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@ jobs:
clojureRef: ${{ inputs.clojureRef }}
subjectRepo: 'xsc/pandect'
subjectRef: 'main'

test-pedestal:
uses: ./.github/workflows/deps-test.yml
with:
clojureRepo: ${{ inputs.clojureRepo }}
clojureRef: ${{ inputs.clojureRef }}
subjectRepo: 'pedestal/pedestal'
subjectRef: 'master'
setUpDir: './service'
setUpCmd: 'clojure -X:deps:local prep'
testDir: './tests'
testCmd: '-X:test'
16 changes: 16 additions & 0 deletions .github/workflows/deps-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ on:
description: "The branch, tag or SHA to checkout for subject repo"
type: string
required: true
SetUpDir:
description: "Directory setup invocation must be run from"
type: string
default: '.'
required: false
SetUpCmd:
description: "Command to invoke setup"
type: string
required: false
default: 'echo "No setup"'
testDir:
description: "Directory test invocation must be run from"
type: string
Expand Down Expand Up @@ -87,6 +97,12 @@ jobs:
ref: ${{ inputs.subjectRef }}
path: 'subject-source'

- name: Run Setup
run: |
cd /home/runner/work/test.regression/test.regression/subject-source
cd ${{ inputs.setUpDir }}
${{ inputs.setUpCmd }}
- name: Run Tests
run: |
cd /home/runner/work/test.regression/test.regression/subject-source
Expand Down

0 comments on commit c928094

Please sign in to comment.