diff --git a/.github/workflows/debug-stuff.yml b/.github/workflows/debug-stuff.yml index 9162af6..340c939 100644 --- a/.github/workflows/debug-stuff.yml +++ b/.github/workflows/debug-stuff.yml @@ -35,6 +35,7 @@ jobs: with: clojureRepo: ${{ inputs.clojureRepo }} clojureRef: ${{ inputs.clojureRef }} + preTest: 'export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start' testCmd: 'lein deps; lein javac; export DISPLAY=:99.0; ./lazytest.sh' subjectRepo: 'clj-commons/seesaw' subjectRef: 'master' \ No newline at end of file diff --git a/.github/workflows/lein-test.yml b/.github/workflows/lein-test.yml index 5511adc..480a953 100644 --- a/.github/workflows/lein-test.yml +++ b/.github/workflows/lein-test.yml @@ -30,6 +30,11 @@ on: type: string required: false default: 'lein test' + preTest: + description: "Pre test setup scripts" + type: string + required: false + default: '' jobs: test: @@ -85,4 +90,5 @@ jobs: cd /home/runner/work/test.regression/test.regression/subject-source lein deps sed -i.bak "s/\(org.clojure\/clojure\ \"[0-9\.]*\"\)/org.clojure\/clojure \"${{ env.LATEST_CLJ_BUILD }}\"/g" project.clj + ${{ preTest }} ${{ inputs.testCmd }} \ No newline at end of file