Skip to content

Commit 461a836

Browse files
Merge pull request #796 from ruudk/patch-2
Add PHP 8.4 to test matrix
2 parents 142107b + 0e44b0d commit 461a836

File tree

4 files changed

+53
-10
lines changed

4 files changed

+53
-10
lines changed

.github/workflows/bench.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Benchmark
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php:
15+
- '8.1'
16+
- '8.2'
17+
- '8.3'
18+
- '8.4'
19+
20+
steps:
21+
- name: Set up PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: bcmath, gmp, intl, dom, mbstring
26+
ini-values: zend.assertions=1
27+
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Remove Psalm when on PHP 8.4
32+
if: ${{ matrix.php == '8.4' }}
33+
run: composer remove --dev psalm/plugin-phpunit vimeo/psalm
34+
35+
- uses: "ramsey/composer-install@v3"
36+
37+
- name: Run phpbench
38+
run: vendor/bin/phpbench run

.github/workflows/ci.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
- name: Set up locales
2626
run: ./hack/setup-locales.sh
2727

28-
- name: Download dependencies
29-
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress --no-suggest --prefer-lowest --classmap-authoritative
28+
- uses: "ramsey/composer-install@v3"
29+
with:
30+
dependency-versions: "lowest"
3031

3132
- name: Run tests
3233
run: composer test
@@ -35,11 +36,13 @@ jobs:
3536
name: Build
3637
runs-on: ubuntu-latest
3738
strategy:
39+
fail-fast: false
3840
matrix:
3941
php:
4042
- '8.1'
4143
- '8.2'
4244
- '8.3'
45+
- '8.4'
4346

4447
steps:
4548
- name: Set up PHP
@@ -58,11 +61,14 @@ jobs:
5861
- name: Set up locales
5962
run: ./hack/setup-locales.sh
6063

61-
- name: Download dependencies
62-
run: composer install --classmap-authoritative
64+
- name: Remove Psalm when on PHP 8.4
65+
if: ${{ matrix.php == '8.4' }}
66+
run: composer remove --dev psalm/plugin-phpunit vimeo/psalm
67+
68+
- uses: "ramsey/composer-install@v3"
6369

6470
- name: Run tests
65-
run: composer test
71+
run: vendor/bin/phpunit
6672

6773
psalm:
6874
name: Psalm
@@ -75,11 +81,10 @@ jobs:
7581
- name: Set up PHP
7682
uses: shivammathur/setup-php@v2
7783
with:
78-
php-version: '8.1'
84+
php-version: '8.3'
7985
extensions: bcmath, gmp, intl, dom, mbstring
8086

81-
- name: Download dependencies
82-
run: composer install --classmap-authoritative
87+
- uses: "ramsey/composer-install@v3"
8388

8489
- name: Psalm
8590
run: vendor/bin/psalm

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.3'
2020
extensions: bcmath, gmp, intl, dom, mbstring
2121

2222
- name: Download dependencies

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"homepage": "http://moneyphp.org",
2626
"require": {
27-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
27+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
2828
"ext-bcmath": "*",
2929
"ext-filter": "*",
3030
"ext-json": "*"

0 commit comments

Comments
 (0)