Skip to content

Commit 8ce335a

Browse files
committed
rework actions
1 parent 33a0e4a commit 8ce335a

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff 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:
@@ -39,7 +45,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)