-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send JS packages' coverage to coveralls
- Loading branch information
Showing
3 changed files
with
63 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Finish Coveralls build | ||
on: | ||
workflow_run: | ||
workflows: | ||
- Test | ||
- TestJS | ||
types: | ||
- completed | ||
|
||
# Cancels all previous workflow runs for the same branch that have not yet completed. | ||
concurrency: | ||
# The concurrency group contains the workflow name and the branch name. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
finish_coveralls_build: | ||
name: "Finish coveralls build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Wait for the PHP and JS tests to finish. | ||
# NOTE: The ref value should be different when triggered by pull_request event. | ||
# See: https://github.com/lewagon/wait-on-check-action/issues/25. | ||
- name: "Wait on tests (PR)" | ||
uses: lewagon/wait-on-check-action@e106e5c43e8ca1edea6383a39a01c5ca495fd812 # lewagon/[email protected] | ||
if: github.event_name == 'pull_request' | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
check-regexp: Test|TestJS | ||
|
||
- name: "Wait on tests (push)" | ||
if: github.event_name != 'pull_request' | ||
uses: lewagon/wait-on-check-action@e106e5c43e8ca1edea6383a39a01c5ca495fd812 # lewagon/[email protected] | ||
with: | ||
ref: ${{ github.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
check-regexp: Test|TestJS | ||
|
||
|
||
- name: "Coveralls Finished" | ||
uses: coverallsapp/github-action@v2 | ||
env: | ||
COVERALLS_SERVICE_NUMBER: ${{ github.sha }} # Connect all builds together. | ||
with: | ||
github-token: ${{ secrets.COVERALLS_TOKEN }} | ||
carryforward: "unit-php-7.2,unit-php-8.3,php-7.2-wp-6.2,php-7.2-wp-6.2-ms,php-8.3-wp-trunk,php-8.3-wp-trunk-ms,package-analysis-report,package-browserslist-config,package-components,package-feature-flag,package-helpers,package-js,package-replacement-variable-editor,package-search-metadata-previews,package-social-metadata-forms,package-social-metadata-previews,package-yoast-components" | ||
parallel-finished: true |
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