Skip to content

Commit c928094

Browse files
committed
Add setUp phase for deps tests
1 parent 1cc0779 commit c928094

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/debug-stuff.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,15 @@ jobs:
6464
clojureRef: ${{ inputs.clojureRef }}
6565
subjectRepo: 'xsc/pandect'
6666
subjectRef: 'main'
67+
68+
test-pedestal:
69+
uses: ./.github/workflows/deps-test.yml
70+
with:
71+
clojureRepo: ${{ inputs.clojureRepo }}
72+
clojureRef: ${{ inputs.clojureRef }}
73+
subjectRepo: 'pedestal/pedestal'
74+
subjectRef: 'master'
75+
setUpDir: './service'
76+
setUpCmd: 'clojure -X:deps:local prep'
77+
testDir: './tests'
78+
testCmd: '-X:test'

.github/workflows/deps-test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ on:
2020
description: "The branch, tag or SHA to checkout for subject repo"
2121
type: string
2222
required: true
23+
SetUpDir:
24+
description: "Directory setup invocation must be run from"
25+
type: string
26+
default: '.'
27+
required: false
28+
SetUpCmd:
29+
description: "Command to invoke setup"
30+
type: string
31+
required: false
32+
default: 'echo "No setup"'
2333
testDir:
2434
description: "Directory test invocation must be run from"
2535
type: string
@@ -87,6 +97,12 @@ jobs:
8797
ref: ${{ inputs.subjectRef }}
8898
path: 'subject-source'
8999

100+
- name: Run Setup
101+
run: |
102+
cd /home/runner/work/test.regression/test.regression/subject-source
103+
cd ${{ inputs.setUpDir }}
104+
${{ inputs.setUpCmd }}
105+
90106
- name: Run Tests
91107
run: |
92108
cd /home/runner/work/test.regression/test.regression/subject-source

0 commit comments

Comments
 (0)