Skip to content

Commit

Permalink
Merge branch 'main' into willdavsmith/fork-functional-test-4
Browse files Browse the repository at this point in the history
  • Loading branch information
willdavsmith authored Mar 11, 2024
2 parents a95f134 + b9eedcd commit 75ffaee
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/functional-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
name: [ucp,kubernetes,shared,msgrp,daprrp,samples,cli]
include:
# datastorerp functional tests need the larger VM.
- os: ubuntu-latest-m
name: datastoresrp
name: [ucp,kubernetes,msgrp,daprrp,samples]
runs-on: ${{ matrix.os }}
env:
UNIQUE_ID: ${{ needs.build.outputs.UNIQUE_ID }}
Expand Down Expand Up @@ -656,6 +652,21 @@ jobs:
with:
app_id: ${{ env.FUNCTIONAL_TEST_APP_ID }}
private_key: ${{ secrets.FUNCTIONAL_TEST_APP_PRIVATE_KEY }}
- name: Get tests job status
run: |
# from: https://github.com/orgs/community/discussions/26526#discussioncomment-3252209
jobstatus=$(curl -X GET -s -u "admin:${{ steps.get_installation_token.outputs.token }}" https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | jq ".jobs[] | {job_status: .conclusion, matrix: .name}")
# if jobstatus contains failure
if echo "$jobstatus" | grep -q "failure"; then
echo "TEST_STATUS=failure" >> $GITHUB_ENV
elif echo "$jobstatus" | grep -q "cancelled"; then
echo "TEST_STATUS=cancelled" >> $GITHUB_ENV
else
echo "TEST_STATUS=success" >> $GITHUB_ENV
fi
echo "Test Status: $jobstatus"
echo "Setting test status to $TEST_STATUS"
- uses: LouisBrunner/checks-action@v1.6.1
if: always()
with:
Expand All @@ -664,7 +675,7 @@ jobs:
repo: ${{ github.repository }}
sha: ${{ env.CHECKOUT_REF }}
status: completed
conclusion: ${{ needs.tests.outputs.test_status }}
conclusion: ${{ env.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 }}
Expand Down

0 comments on commit 75ffaee

Please sign in to comment.