File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,34 @@ jobs:
3939 run : php hyde debug
4040
4141 - name : Execute tests (Unit and Feature tests) via PHPUnit
42- run : vendor/bin/pest
42+ run : vendor/bin/pest --stop-on-failure --log-junit report.xml
4343 env :
4444 ENV : testing
4545
46+ - name : Ping continuous integration server with test status
47+ if : always() && github.event.repository.full_name == 'hydephp/develop'
48+ run : |
49+ bearerToken="${{ secrets.CI_SERVER_TOKEN }}"
50+ commit="${{ github.event.pull_request.head.sha }}"
51+ url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
52+
53+ if [ ${{ steps.smoke-tests.outcome }} == "failure" ]; then
54+ status=false
55+ else
56+ status=true
57+ fi
58+
59+ curl -X POST --fail-with-body \
60+ -H "Authorization: Bearer $bearerToken" \
61+ -H "Content-Type: application/json" \
62+ -H "Accept: application/json" \
63+ -d '{"commit":"'"$commit"'", "status":'$status', "url":"'"$url"'"}' \
64+ https://ci.hydephp.com/api/test-run-reports
65+
66+ - name : Ping statistics server with test results
67+ run : |
68+ curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
69+ php ping.php "Monorepo Smoke Tests" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
4670
4771 test-matrix :
4872 needs : run-smoke-tests
You can’t perform that action at this time.
0 commit comments