Skip to content

Commit

Permalink
Pipe stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri authored Dec 10, 2023
1 parent 7211d04 commit 9e48b72
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/golang-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,8 @@ jobs:
- name: Run integration test
working-directory: .data/MyGolangApp
run: |
go run main.go > /tmp/app-log &
sleep 2
$(curl --connect-timeout 10 http://0.0.0.0:8080)
if [ $? -eq 0 ]; then
cat /tmp/app-log
echo "Curl succeeded."
else
cat /tmp/app-log
echo "Curl failed!"
exit 1
fi
go run main.go 2>&1 &
sleep 5
curl --connect-timeout 10 http://0.0.0.0:8080

0 comments on commit 9e48b72

Please sign in to comment.