Skip to content

Commit d4c5f05

Browse files
committed
Add coveralls workflow
1 parent fe779a4 commit d4c5f05

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/cover.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
- push
3+
4+
name: Coveralls
5+
6+
jobs:
7+
run:
8+
name: Tests
9+
10+
strategy:
11+
matrix:
12+
operating-system: [ ubuntu-latest ]
13+
php-versions: [ '8.3' ]
14+
15+
runs-on: ${{ matrix.operating-system }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
extensions: sockets, json, curl
26+
27+
- name: Install dependencies with composer
28+
run: composer install
29+
30+
- name: Run tests
31+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
32+
33+
- name: Upload coverage results to Coveralls
34+
env:
35+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: |
37+
composer global require php-coveralls/php-coveralls
38+
php-coveralls --coverage_clover=build/logs/clover.xml -v

0 commit comments

Comments
 (0)