-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update github action workflow to at least one test pass and some skip…
…ped, update bearer token function (#3353)
- Loading branch information
Showing
3 changed files
with
43 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,27 +66,22 @@ jobs: | |
echo "any_test_failed=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_fail > 0 }}" >> $GITHUB_OUTPUT | ||
echo "any_test_skipped=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_skip > 0 }}" >> $GITHUB_OUTPUT | ||
echo "any_test_error=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_error > 0 }}" >> $GITHUB_OUTPUT | ||
echo "all_tests_passed=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_succ == fromJSON( steps.publish-test.outputs.json ).stats.tests }}" >> $GITHUB_OUTPUT | ||
echo "all_tests_passed=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_succ == fromJSON( steps.publish-test.outputs.json ).stats.tests }}" >> $GITHUB_ENV | ||
# echo "any_test_failed=false" >> $GITHUB_OUTPUT | ||
# echo "any_test_skipped=false" >> $GITHUB_OUTPUT | ||
# echo "any_test_error=false" >> $GITHUB_OUTPUT | ||
# echo "all_test_passed=true" >> $GITHUB_OUTPUT | ||
echo "any_test_passed=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_succ > 0 }}" >> $GITHUB_OUTPUT | ||
echo "all_tests_succeeded_or_skipped=${{ fromJSON( steps.publish-test.outputs.json ).stats.tests_succ > 0 && fromJSON( steps.publish-test.outputs.json ).stats.tests_fail == 0 && fromJSON( steps.publish-test.outputs.json ).stats.tests_error == 0 }}" >> $GITHUB_ENV | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-results | ||
path: test-results/** | ||
- name: Succeeded in Completing All Tests | ||
uses: LouisBrunner/[email protected] | ||
if: env.all_tests_passed == 'true' | ||
if: env.all_tests_succeeded_or_skipped == 'true' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: All Tests Run And Passed | ||
name: All Tests Run and Completed (Passed and/or Skipped) | ||
conclusion: success | ||
output: | | ||
{"summary":"No errors, skipped tests, or failed tests detected"} | ||
{"summary":"No failed or errored tests; at least one test passed, with some skipped tests."} | ||
tests_pass: | ||
needs: verify_collection | ||
name: Merge Pull Request | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters