Skip to content

Commit

Permalink
chore: upload coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Dec 25, 2020
1 parent 482826a commit f86c52f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,29 @@ jobs:
- name: Run test suite
run: ./vendor/bin/phpunit

semantic-release:
- name: Upload test artifact
uses: actions/upload-artifact@v2
with:
name: clover
path: ./build/logs/clover.xml

upload-coverage:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- name: Download test artifact
uses: actions/download-artifact@v2
with:
name: clover
path: ./build/logs/clover.xml
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

semantic-release:
runs-on: ubuntu-latest
needs: [ test, upload-coverage ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down

0 comments on commit f86c52f

Please sign in to comment.