Skip to content

Commit 0f92211

Browse files
committed
updates php matrix, using flexible phpunit version
1 parent 3e6f38a commit 0f92211

File tree

4 files changed

+400
-362
lines changed

4 files changed

+400
-362
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
pull_request:
66
schedule:
7-
- cron: '15 22 2 * *'
7+
- cron: "15 22 2 * *"
88

99
env:
1010
OPENCAGE_API_KEY: ${{ secrets.GEO_CODER_OPENCAGE_API_KEY }}
@@ -14,15 +14,15 @@ jobs:
1414
strategy:
1515
matrix:
1616
# https://www.php.net/supported-versions.php
17-
php-version: ['8.2', '8.3', '8.4']
17+
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
1818

1919
name: PHP OpenCage Geocode
2020

2121
runs-on: ubuntu-latest
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626

2727
- name: Set up PHP ${{ matrix.php-version }}
2828
uses: shivammathur/setup-php@v2
@@ -31,7 +31,9 @@ jobs:
3131
coverage: none
3232

3333
- name: Install dependencies
34-
run: composer install --no-progress --no-suggest --no-interaction
34+
run: |
35+
if [ "${{ matrix.php-version }}" != "8.5" ]; then rm composer.lock; fi
36+
composer install --no-progress --no-suggest --no-interaction
3537
3638
- name: Run tests
3739
run: |

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
}
1616
},
1717
"require": {
18-
"php": ">=8.0"
18+
"php": ">=8.1"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "~11.0",
21+
"phpunit/phpunit": "^10.5 || ^11.0 || ^12.0",
2222
"squizlabs/php_codesniffer": "^3.7",
2323
"phpstan/phpstan": "^2.0.0"
2424
},

0 commit comments

Comments
 (0)