Skip to content

Commit b029aa2

Browse files
gsteelsgiehl
andauthored
Declare supported PHP versions explicitly and run tests on all supported versions (#147)
* Declare supported PHP versions explicitly and run tests on all supported versions * Apply suggestion from @sgiehl --------- Co-authored-by: Stefan Giehl <stefan@matomo.org>
1 parent 9ddccf0 commit b029aa2

2 files changed

Lines changed: 3 additions & 37 deletions

File tree

.github/workflows/phpunit.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,42 +23,8 @@ jobs:
2323
runs-on: ${{ matrix.operating-system }}
2424
strategy:
2525
matrix:
26-
operating-system: [ubuntu-latest, windows-latest]
27-
php-version: ['7.2', '8.3']
28-
include:
29-
- php-version: 7.3
30-
operating-system: ubuntu-latest
31-
- php-version: 7.4
32-
operating-system: ubuntu-latest
33-
- php-version: 8.0
34-
operating-system: ubuntu-latest
35-
- php-version: 8.1
36-
operating-system: ubuntu-latest
37-
- php-version: 8.2
38-
operating-system: ubuntu-latest
39-
steps:
40-
- uses: actions/checkout@v2
41-
- name: Install PHP
42-
uses: shivammathur/setup-php@v2
43-
with:
44-
php-version: ${{ matrix.php-version }}
45-
tools: composer:v2
46-
extensions: memcached
47-
- name: "Composer install"
48-
run: |
49-
composer install --prefer-dist
50-
- name: PHPUnit / PHP ${{ matrix.php-version }}
51-
run: |
52-
php -v
53-
./vendor/bin/phpunit
54-
55-
build2:
56-
name: PHPUnit
57-
runs-on: ${{ matrix.operating-system }}
58-
strategy:
59-
matrix:
60-
operating-system: [ macOS-latest ]
61-
php-version: [ '7.2', '8.3' ]
26+
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
27+
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
6228
steps:
6329
- uses: actions/checkout@v2
6430
- name: Install PHP

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"source": "https://github.com/matomo-org/matomo-php-tracker"
1818
},
1919
"require": {
20-
"php": "^7.2 || ^8.0",
20+
"php": "~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5",
2121
"ext-json": "*"
2222
},
2323
"suggest": {

0 commit comments

Comments
 (0)