Skip to content

Commit

Permalink
Upgrade the coverage-report action in the github-actions package …
Browse files Browse the repository at this point in the history
…to use Node.js v20.
  • Loading branch information
eason9487 committed Apr 23, 2024
1 parent 9f3d1ac commit 5e10b6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/github-actions/actions/coverage-report/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare PHP
uses: woocommerce/grow/prepare-php@actions-v1
uses: woocommerce/grow/prepare-php@actions-v2

- name: Run unit tests (with coverage report)
run: phpdbg -qrr vendor/bin/phpunit --coverage-clover=tests/coverage/report.xml

- name: PHP unit coverage report
uses: woocommerce/grow/coverage-report@actions-v1
uses: woocommerce/grow/coverage-report@actions-v2
with:
base-branch: trunk
test-comment: "PHP unit test coverage"
Expand Down
4 changes: 2 additions & 2 deletions packages/github-actions/actions/coverage-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:

# Download coverage report artifact
- if: github.event_name == 'pull_request'
uses: dawidd6/action-download-artifact@v2.14.1
uses: dawidd6/action-download-artifact@v3
continue-on-error: true
with:
workflow: ${{ inputs.workflow }}
Expand All @@ -52,7 +52,7 @@ runs:

# Save coverage report as an artifact
- if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.report-name }}
path: "${{ inputs.report-path }}/${{ inputs.report-file }}"
Expand Down

0 comments on commit 5e10b6b

Please sign in to comment.