File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,24 @@ jobs:
1717 with :
1818 fetch-depth : 1
1919
20- - run : php${{ matrix.php-version }} -v
21- - run : php${{ matrix.php-version }} -m
20+ - name : Setup PHP
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ php-version : ${{ matrix.php-version }}
24+ extensions : gmp
25+
26+ - run : php -v
27+ - run : php -m
2228 - run : composer -V
2329 - run : composer install --no-progress
24- - run : php${{ matrix.php-version }} vendor/bin/phpunit
30+ - run : php vendor/bin/phpunit
2531
2632 windows :
2733 name : Test on Windows
2834 defaults :
2935 run :
3036 shell : cmd
31- runs-on : windows-latest
37+ runs-on : windows-2022
3238 strategy :
3339 fail-fast : false
3440 matrix :
3945 steps :
4046 - name : Setup PHP
4147 id : setup-php
42- uses : cmb69 /setup-php-sdk@v0.7
48+ uses : php /setup-php-sdk@v0.11
4349 with :
4450 version : ${{matrix.php-version}}
4551 arch : ${{matrix.arch}}
@@ -63,11 +69,12 @@ jobs:
6369 - uses : shivammathur/setup-php@v2
6470 with :
6571 php-version : 8.2
66- coverage : none
72+ extensions : gmp
73+ coverage : pcov
6774
6875 - run : composer install --no-progress
6976 - run : mkdir -p build/logs
70- - run : phpdbg -qrr vendor/bin/phpunit
77+ - run : vendor/bin/phpunit --coverage-clover build/logs/clover.xml
7178 - run : wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
7279 - env :
7380 COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments