Skip to content

Commit 7d25c56

Browse files
committed
bump php
1 parent b9d68e4 commit 7d25c56

File tree

5 files changed

+50
-36
lines changed

5 files changed

+50
-36
lines changed

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
name: PHPStan
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
14+
1415
- uses: shivammathur/setup-php@v2
1516
with:
16-
php-version: 8.1
17+
php-version: 8.3
18+
extensions: gmp
1719
coverage: none
1820

1921
- run: composer install --no-progress --prefer-dist

.github/workflows/tests.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,47 @@ jobs:
66

77
linux:
88
name: Test on Linux
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
php-version: ['8.1', '8.2', '8.3']
13+
php-version: ['8.1', '8.2', '8.3', '8.4']
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
1720
with:
18-
fetch-depth: 1
21+
php-version: ${{ matrix.php-version }}
22+
extensions: gmp
23+
coverage: none
1924

20-
- run: php${{ matrix.php-version }} -v
21-
- run: php${{ matrix.php-version }} -m
25+
- run: php -v
26+
- run: php -m
2227
- run: composer -V
2328
- run: composer install --no-progress
24-
- run: php${{ matrix.php-version }} vendor/bin/phpunit
29+
- run: php vendor/bin/phpunit
2530

2631
windows:
2732
name: Test on Windows
28-
defaults:
29-
run:
30-
shell: cmd
3133
runs-on: windows-latest
3234
strategy:
3335
fail-fast: false
3436
matrix:
35-
php-version: ['8.1', '8.2']
36-
arch: [x64]
37-
ts: [nts]
37+
php-version: ['8.1', '8.2', '8.3', '8.4']
3838

3939
steps:
40+
- uses: actions/checkout@v4
41+
4042
- name: Setup PHP
41-
id: setup-php
42-
uses: cmb69/[email protected]
43-
with:
44-
version: ${{matrix.php-version}}
45-
arch: ${{matrix.arch}}
46-
ts: ${{matrix.ts}}
47-
- uses: actions/checkout@v2
43+
uses: shivammathur/setup-php@v2
4844
with:
49-
fetch-depth: 1
45+
php-version: ${{ matrix.php-version }}
46+
extensions: gmp
47+
coverage: none
5048

5149
- run: php -v
52-
- run: echo extension=gmp>>C:\tools\php\php.ini
5350
- run: php -m
5451
- run: composer -V
5552
- run: composer install --no-progress
@@ -59,15 +56,17 @@ jobs:
5956
name: Code Coverage
6057
runs-on: ubuntu-latest
6158
steps:
62-
- uses: actions/checkout@v2
59+
- uses: actions/checkout@v4
60+
6361
- uses: shivammathur/setup-php@v2
6462
with:
65-
php-version: 8.1
66-
coverage: none
63+
php-version: 8.3
64+
extensions: gmp
65+
coverage: pcov
6766

6867
- run: composer install --no-progress
6968
- run: mkdir -p build/logs
70-
- run: phpdbg -qrr vendor/bin/phpunit
69+
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
7170
- run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
7271
- env:
7372
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ composer.lock
88
nbproject/
99
build/
1010
.phpunit.result.cache
11+
.phpunit.cache
1112
infection.log

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"paragonie/ecc": "^2"
99
},
1010
"require-dev": {
11-
"phpunit/phpunit": "^9"
11+
"phpunit/phpunit": "^9 || ^10 || ^11"
1212
},
1313
"autoload": {
1414
"psr-4": {

phpunit.xml.dist

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
4+
cacheDirectory=".phpunit.cache"
5+
backupGlobals="false"
6+
colors="true"
7+
displayDetailsOnTestsThatTriggerDeprecations="true"
8+
failOnDeprecation="true"
9+
failOnNotice="true"
10+
failOnWarning="true"
11+
beStrictAboutOutputDuringTests="true"
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd">
13+
<testsuites>
14+
<testsuite name="secp256 Test Suite">
15+
<directory>test</directory>
16+
</testsuite>
17+
</testsuites>
18+
<source>
419
<include>
520
<directory suffix=".php">src</directory>
621
</include>
22+
</source>
23+
<coverage>
724
<report>
825
<clover outputFile="build/logs/clover.xml"/>
926
<html outputDirectory="build/coverage"/>
1027
<text outputFile="build/coverage.txt"/>
1128
</report>
1229
</coverage>
13-
<testsuites>
14-
<testsuite name="secp256 Test Suite">
15-
<directory>test</directory>
16-
</testsuite>
17-
</testsuites>
1830
<logging>
1931
<junit outputFile="build/report.junit.xml"/>
2032
</logging>

0 commit comments

Comments
 (0)