Skip to content

Commit

Permalink
Fixing relative path issues with executing the smoke-test script
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 16, 2024
1 parent b936310 commit 81c56e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@ jobs:

- name: Run application in background, capture logs, and save PID in a variable
run: |
${{ env.GRADLE_EXEC }} run 2> app.log < /dev/null &
${{ env.GRADLE_EXEC }} run 2> server/src/test/resources/app.log < /dev/null &
APP_PID=$!
echo "Application started with PID $APP_PID"
sleep 10
- name: Print App Logs
run: cat app.log
run: cat server/src/test/resources/app.log

- name: Smoke Test
run: ./server/src/test/resources/smoke-test.sh app.log
working-directory: server/src/test/resources
run: smoke-test.sh app.log

- name: Kill application
run: kill $APP_PID

0 comments on commit 81c56e6

Please sign in to comment.