-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: coverage workflow * chore: add xdebug * fix: xdebug * fix: workflow * fix: workflow * chore: update codecov upload * docs: update codecov badge
- Loading branch information
1 parent
0407f34
commit dffe083
Showing
5 changed files
with
20 additions
and
6 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 |
---|---|---|
|
@@ -9,6 +9,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Xdebug Action | ||
uses: MilesChou/[email protected] | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
|
@@ -18,5 +21,10 @@ jobs: | |
- name: Run test suite | ||
run: composer run-script test | ||
|
||
- name: Run codecov | ||
run: bash <(curl -s https://codecov.io/bash) | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
# - name: Run codecov | ||
# run: bash <(curl -s https://codecov.io/bash) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
.idea | ||
/vendor | ||
clover.xml | ||
coverage.xml |
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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit colors="true" verbose="true"> | ||
<phpunit bootstrap="vendor/autoload.php" colors="true" verbose="true"> | ||
<logging> | ||
<log type="coverage-clover" target="clover.xml"/> | ||
<log type="coverage-clover" target="./coverage.xml"/> | ||
</logging> | ||
<testsuites> | ||
<testsuite name="unit"> | ||
<directory suffix=".php">tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |