Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexv-smirnov authored May 21, 2024
1 parent a77712e commit 1fbad64
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/actions/test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,21 @@ runs:
mkdir $ARTIFACTS_DIR/summary/
cat $SUMMARY_LINKS | python3 -c 'import sys; print(" | ".join([v for _, v in sorted([l.strip().split(" ", 1) for l in sys.stdin], key=lambda a: (int(a[0]), a))]))' >> $GITHUB_STEP_SUMMARY
teststatus="success"
.github/scripts/tests/generate-summary.py \
--summary-out-path $ARTIFACTS_DIR/summary/ \
--summary-url-prefix $S3_URL_PREFIX/summary/ \
--test-history-url $TEST_HISTORY_URL \
--build-preset "$BUILD_PRESET" \
"Tests" ya-test.html "$JUNIT_REPORT_XML"
"Tests" ya-test.html "$JUNIT_REPORT_XML" || (
RC=$?
teststatus="failure"
echo "::debug::testresult RC=$RC"
)
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} -d '{"state":"'$teststatus'","description":"Tests '$teststatus'","context":"test_${{inputs.build_preset}}"}'
- name: sync test results to s3
if: always()
Expand Down

0 comments on commit 1fbad64

Please sign in to comment.