Skip to content

Commit

Permalink
Add integration with coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ekojs committed Jan 30, 2025
1 parent 7bec569 commit b5c2b38
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
service_name: travis-ci
#service_name: travis-ci
service_name: php-coveralls
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,21 @@ jobs:
${{ runner.os }}-php-${{ steps.setup-php.outputs.php-version }}-
- name: Install dependencies
run: composer install
run: |
composer install
- name: Checking GD Info
run: php -r "print_r(gd_info());"

- name: Run test suite
run: composer run test

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
- shell: bash
run: |
which tar && tar -czvf coverage.tar.gz build/logs/html
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Testing Deployment
on:
push:
branches:
- 'master'
- 'testing'

permissions:
Expand Down Expand Up @@ -42,10 +43,17 @@ jobs:
${{ runner.os }}-php-${{ steps.setup-php.outputs.php-version }}-
- name: Install dependencies
run: composer install
run: |
composer install
- name: Checking GD Info
run: php -r "print_r(gd_info());"

- name: Run test suite
run: composer run test
run: composer run test

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

0 comments on commit b5c2b38

Please sign in to comment.