Skip to content

Commit

Permalink
Merge pull request #1402 from hydephp/update-internal-ci-script
Browse files Browse the repository at this point in the history
Internal: Update testrunner to print error when missing required file
  • Loading branch information
caendesilva authored Oct 27, 2023
2 parents f4f3d0f + 321f868 commit a42101d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Ping statistics server with test results
run: |
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo CI Matrix" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
system-testing:
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
- name: Ping statistics server with test results
run: |
cp build/junit.xml report.xml
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo PR Test" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
- name: Upload coverage artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Ping statistics server with test results
run: |
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo Smoke Tests" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
Expand Down Expand Up @@ -68,5 +68,5 @@ jobs:

- name: Ping statistics server with test results
run: |
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo Smoke Tests - Coverage" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Ping statistics server with test results
run: |
cp build/junit.xml report.xml
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo PR Test" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
test-matrix:
Expand All @@ -77,5 +77,5 @@ jobs:

- name: Ping statistics server with test results
run: |
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Monorepo PR Matrix" ${{ secrets.OPENANALYTICS_TOKEN }} ${{ github.ref_name }}
1 change: 1 addition & 0 deletions monorepo/scripts/ping-openanalytics-testrunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
}

if (! file_exists('report.xml')) {
echo "::error:: Must provide a Junit report file\n";
exit(404);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/framework/.github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ jobs:
- name: Ping statistics server with test results
run: |
cd hyde
curl https://raw.githubusercontent.com/hydephp/develop/cfbf8fb97505359266f849edef4757ae76a922b5/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
curl https://raw.githubusercontent.com/hydephp/develop/6e9d17f31879f4ccda13a3fec4029c9663bccec0/monorepo/scripts/ping-openanalytics-testrunner.php -o ping.php
php ping.php "Framework CI Matrix" ${{ secrets.OPENANALYTICS_TOKEN }}

0 comments on commit a42101d

Please sign in to comment.