Skip to content

Commit

Permalink
test curl response and token
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 10, 2024
1 parent a227185 commit 3cc3995
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ jobs:
go run . &
GO_PID=$!
sleep 2s
curl --header "Authorization: Bearer ${GH_TOKEN}" http://localhost:8000/auth -v
CURL_RESPONSE=$?
echo "${GH_TOKEN}"
CURL_RESPONSE=$(curl --write-out '%{http_code}' --silent --output /dev/null --header "Authorization: Bearer ${GH_TOKEN}" http://localhost:8000/auth)
kill -9 $GO_PID
echo "Curl Exit code: ${CURL_RESPONSE}!"
echo "Curl status code: ${CURL_RESPONSE}!"
:

0 comments on commit 3cc3995

Please sign in to comment.