Skip to content

Commit

Permalink
Added step for printing test results URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Dec 15, 2023
1 parent 21a0453 commit 989feaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ jobs:
env:
TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_RESULTS_WEB_UI_URL: undefined
run: |
Scripts/upload_test_results.sh --job-index ${{ strategy.job-index }}
- name: Test Results URL
if: always()
run: |
echo "Test results URL: ${TEST_RESULTS_WEB_UI_URL}"
4 changes: 2 additions & 2 deletions Scripts/upload_test_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,5 +317,5 @@ echo 2>&1 # Print a newline to separate the `curl` output from the next log line
# 11. Extract the ID of the created upload and log the web UI URL.

upload_id=$(jq --exit-status --raw-output '.id' < "${temp_response_body_file}")
web_ui_url="${upload_server_base_url}/repos/${GITHUB_REPOSITORY}/uploads/${upload_id}"
echo "Test results uploaded successfully: ${web_ui_url}"
$TEST_RESULTS_WEB_UI_URL="${upload_server_base_url}/repos/${GITHUB_REPOSITORY}/uploads/${upload_id}"
echo "Test results uploaded successfully: ${TEST_RESULTS_WEB_UI_URL}"

0 comments on commit 989feaf

Please sign in to comment.