Skip to content

Commit f3d92e2

Browse files
authored
Merge pull request #239 from ashnazg/phpunit
Bump to PHP 7.4 minimum for return type covariance
2 parents 80af218 + b2817d7 commit f3d92e2

9 files changed

Lines changed: 89 additions & 1984 deletions

File tree

.github/workflows/build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
run:
13+
runs-on: ${{ matrix.operating-system }}
14+
strategy:
15+
matrix:
16+
operating-system: ['ubuntu-latest'] #, 'macos-latest'] #, 'windows-latest']
17+
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
18+
steps:
19+
- name: Get source code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
coverage: none
28+
ini-values: post_max_size=256M, max_execution_time=180
29+
- run: sudo pear list
30+
- run: sudo pear channel-update pear.php.net
31+
- run: sudo pear upgrade --force pear/pear
32+
- run: sudo pear list
33+
- run: sudo pear install --force package.xml
34+
- run: sudo pear list
35+
- run: sudo pear package
36+
- run: sudo pear package-validate
37+
- run: sudo pear install --force *.tgz
38+
- run: sudo pear list
39+
- run: composer install
40+
- run: ./vendor/bin/phpunit tests

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ coverage.xml
66
tests/coverage/*
77
docs/*
88
build/*
9+
tests/.phpunit*
10+
composer.lock
11+
vendor/

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"name": "kenguest/services-openstreetmap",
2323
"type": "library",
2424
"require": {
25-
"php": ">=7.2.5",
25+
"php": ">=7.4",
2626
"pear/http_request2": "2.4.*",
2727
"pear/log": "1.12.*|1.13.*|1.14.*",
2828
"ext-simplexml": "*"
@@ -35,6 +35,11 @@
3535
"suggest": {
3636
"pear/cache": "*"
3737
},
38+
"config": {
39+
"audit": {
40+
"block-insecure": false
41+
}
42+
},
3843
"support": {
3944
"issues": "https://pear.php.net/bugs/search.php?cmd=display&package_name[]=Services_OpenStreetMap",
4045
"source": "https://github.com/kenguest/Services_Openstreetmap"

0 commit comments

Comments
 (0)