-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reporting functional test only on all pass
Signed-off-by: willdavsmith <[email protected]>
- Loading branch information
1 parent
d7cdbf2
commit 6b95370
Showing
1 changed file
with
27 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -325,6 +325,8 @@ jobs: | |
DE_IMAGE: ${{ needs.build.outputs.DE_IMAGE }} | ||
DE_TAG: ${{ needs.build.outputs.DE_TAG }} | ||
FUNCTIONAL_TEST_APP_ID: 425843 | ||
outputs: | ||
test_status: ${{ steps.report_test_status.outputs.test_status }} | ||
steps: | ||
- name: Login as the GitHub App | ||
uses: tibdex/github-app-token@v1 | ||
|
@@ -606,6 +608,30 @@ jobs: | |
append: true | ||
message: | | ||
:x: ${{ matrix.name }} functional test cancelled. Please check [the logs](${{ env.ACTION_LINK }}) for more details | ||
- id: report_test_status | ||
if: always() | ||
run: | | ||
if ${{ env.test_status }} == 'failure' || ${{ job.status }} == 'failure' || ${{ job.status }} == 'cancelled'; then | ||
echo "test_status=failure" >> $GITHUB_OUTPUT | ||
echo "test_status=failure" >> $GITHUB_ENV | ||
else | ||
echo "test_status=success" >> $GITHUB_OUTPUT | ||
fi | ||
report-test-results: | ||
name: Report test results | ||
needs: [build, tests] | ||
runs-on: ubuntu-latest | ||
if: always() | ||
env: | ||
CHECKOUT_REF: ${{ needs.build.outputs.CHECKOUT_REF }} | ||
FUNCTIONAL_TEST_APP_ID: 425843 | ||
steps: | ||
- name: Login as the GitHub App | ||
uses: tibdex/github-app-token@v1 | ||
id: get_installation_token | ||
with: | ||
app_id: ${{ env.FUNCTIONAL_TEST_APP_ID }} | ||
private_key: ${{ secrets.FUNCTIONAL_TEST_APP_PRIVATE_KEY }} | ||
- uses: LouisBrunner/[email protected] | ||
if: always() | ||
with: | ||
|
@@ -614,7 +640,7 @@ jobs: | |
repo: ${{ github.repository }} | ||
sha: ${{ env.CHECKOUT_REF }} | ||
status: completed | ||
conclusion: ${{ job.status }} | ||
conclusion: ${{ needs.tests.outputs.test_status }} | ||
output: | | ||
{"summary":"Functional Test run completed. See links for more information.","title":"Functional Test Run"} | ||
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
|