Skip to content

Commit

Permalink
Try to run Coveralls in GitHub build action
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Jan 1, 2021
1 parent 83805da commit 10eb617
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/php-ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHP CI
name: build

on: [push, pull_request]

Expand Down Expand Up @@ -27,4 +27,8 @@ jobs:
- run: mkdir -p build/logs
- run: composer test -- --coverage-clover build/logs/clover.xml

- run: if [ -f "vendor/bin/php-coveralls" ]; then php vendor/bin/php-coveralls -v; else vendor/bin/coveralls -v; fi
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
if [ -f "vendor/bin/php-coveralls" ]; then php vendor/bin/php-coveralls -v; fi

0 comments on commit 10eb617

Please sign in to comment.