Skip to content

Commit

Permalink
fix: Fix coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
owenconti committed May 3, 2020
1 parent 29bb472 commit 5e983d1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ jobs:
run: ./vendor/bin/phpcs src tests
- name: Run Tests
run: ./vendor/bin/phpunit
coveralls:
name: Coveralls
if: github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Checkout
run: git checkout "${GITHUB_REF:11}"
- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: "7.3"
coverage: xdebug
- name: Run Tests
run: ./vendor/bin/phpunit
- name: Coveralls
if: github.ref == 'refs/heads/master'
run: ./vendor/bin/php-coveralls -v --coverage_clover build/coverage.xml --json_path build/coveralls-upload.json
Expand Down

0 comments on commit 5e983d1

Please sign in to comment.