Skip to content

Commit

Permalink
Don't use temp folder variable to prevent windows / linux path problems
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent fca87db commit 9c345f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,16 @@ jobs:

- name: "Prepare folders"
run: |
mkdir ${{ runner.temp }}/core
mkdir ${{ runner.temp }}/mockserver
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: ${{ runner.temp }}/core/core.exe
path: /coreExe/core.exe

- name: "Check if core.exe was downloaded"
id: checkCoreExe
Expand All @@ -210,7 +210,7 @@ jobs:
#Search for matching artifact in any of the last completed workflows
search_artifacts: true
workflow_conclusion: 'completed'
path: ${{ runner.temp }}/core/
path: /coreExe/

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

- name: "Copy mockserver"
run: |
copy other/mockserver/target/*-exec.jar ${{ runner.temp }}/mockserver/exec.jar
copy other/mockserver/target/*-exec.jar /mockserver/exec.jar
- name: "Start mock server and hydra, run tests"
uses: BerniWittmann/background-server-action@v1
with:
start: ${{ runner.temp }}/core/core.exe directstart, java -jar ${{ runner.temp }}/mockserver/exec.jar
start: /coreExe/core.exe directstart, java -jar /mockserver/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 9c345f8

Please sign in to comment.