File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments