Skip to content

Commit

Permalink
(fix): workflow example
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Aug 16, 2021
1 parent 23cecda commit 1f04ddf
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ jobs:
env:
COMPOSER_NO_INTERACTION: 1

steps:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
coverage: none
tools: composer:v2

Expand All @@ -68,18 +68,10 @@ jobs:
- name: Execute Unit Tests
run: phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml


- name: Download Previous Coverage Report
uses: actions/download-artifact@v2
with:
name: coverage-report-main
path: coverage.base.xml

- name: Comment Coverage Report (coverage.xml)
uses: lucassabre/comment-coverage-clover@main
- name: Coverage Report as Comment (Clover)
uses: lucassabreu/[email protected]
with:
file: coverage.xml
base-file: coverage.base.xml
```
[danhunsaker/clover-reporter-action]: https://github.com/danhunsaker/clover-reporter-action

0 comments on commit 1f04ddf

Please sign in to comment.