diff --git a/.github/workflows/smoke-test.yaml b/.github/workflows/smoke-test.yaml index 1ceaa824..f65e9794 100644 --- a/.github/workflows/smoke-test.yaml +++ b/.github/workflows/smoke-test.yaml @@ -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