Skip to content

Commit

Permalink
Add mockserver to hosts file, use build profile again
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent 89f0a1f commit a394269
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
needs: [ waitForNative, buildMockserver ]
runs-on: windows-latest
env:
spring_profiles_active: systemtest,core
spring_profiles_active: build,systemtest,core
nzbhydra_port: 5076
nzbhydra.port: 5076
nzbhydra_name: windows
Expand Down Expand Up @@ -224,6 +224,10 @@ jobs:
- name: "List files in folder"
run: ls

- name: "Add mockserver to /etc/hosts"
run: |
sudo echo "127.0.0.1 mockserver" | sudo tee -a /etc/hosts
- name: "Start mock server and hydra, run tests"
uses: BerniWittmann/background-server-action@v1
with:
Expand All @@ -232,12 +236,16 @@ jobs:

- name: "Shutdown hydra"
uses: fjogeleit/http-request-action@v1
if: always()
continue-on-error: true
with:
method: "GET"
url: "http://127.0.0.1:5076/internalapi/control/shutdown"

- name: "Shutdown mockserver"
uses: fjogeleit/http-request-action@v1
if: always()
continue-on-error: true
with:
method: "POST"
url: "http://127.0.0.1:5080/actuator/shutdown"
Expand Down

0 comments on commit a394269

Please sign in to comment.