Skip to content

Commit

Permalink
JESUS FUCKING SHIT I HATE THIS
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent 9c345f8 commit 9f753bf
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,24 +183,19 @@ jobs:
- name: "Check out source"
uses: actions/checkout@v3

- name: "Prepare folders"
run: |
mkdir /coreExe
mkdir /mockserver
- name: "Download windows artifact from current workflow"
id: "downloadArtifactThisBuild"
continue-on-error: true
uses: actions/download-artifact@master
with:
name: coreWindows
path: /coreExe/core.exe
path: core.exe

- name: "Check if core.exe was downloaded"
id: checkCoreExe
uses: andstor/file-existence-action@v1
with:
files: ${{ runner.temp }}/core/core.exe
files: core.exe

- name: "Download windows artifact from previous workflow if no native build was executed"
if: ${{steps.checkCoreExe.outputs.files_exists == 'false'}}
Expand All @@ -210,7 +205,7 @@ jobs:
#Search for matching artifact in any of the last completed workflows
search_artifacts: true
workflow_conclusion: 'completed'
path: /coreExe/
path: .

- name: "Set up JDK 17"
uses: actions/setup-java@v3
Expand All @@ -224,12 +219,15 @@ jobs:

- name: "Copy mockserver"
run: |
copy other/mockserver/target/*-exec.jar /mockserver/exec.jar
copy other/mockserver/target/*-exec.jar exec.jar
- name: "List files in folder"
run: ls

- name: "Start mock server and hydra, run tests"
uses: BerniWittmann/background-server-action@v1
with:
start: /coreExe/core.exe directstart, java -jar /mockserver/exec.jar
start: core.exe directstart, java -jar exec.jar
wait-on: 'http://localhost:5076, http://localhost:5080'
command: mvn --batch-mode test -pl org.nzbhydra.tests:system -DtrimStackTrace=false

Expand Down

0 comments on commit 9f753bf

Please sign in to comment.