11name : Run tests
22
3+ env :
4+ XDEBUG_MODE : coverage
5+
6+ permissions :
7+ contents : read
8+
39on :
410 push :
511 branches :
@@ -16,45 +22,21 @@ jobs:
1622 strategy :
1723 fail-fast : false
1824 matrix :
19- php-version : ["5.3", "5.4", "5.5", "5.6", "7.0", " 7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
20- os : [macos-latest, windows -latest]
25+ php-version : ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
26+ os : [ubuntu -latest]
2127 experimental : [false]
22- php-extensions : ["bcmath, imagick, gd"]
28+ php-extensions : ["bcmath, curl, imagick, gd"]
2329 coverage-extension : ["none"]
24- exclude :
25- # For now, we do not know how to run workflow on Windows
26- # with imagick PHP extension for PHP 5.3 - 5.6
27- - { php-version: '5.3', os: windows-latest }
28- - { php-version: '5.4', os: windows-latest }
29- - { php-version: '5.5', os: windows-latest }
30- - { php-version: '5.6', os: windows-latest }
31- # Somehow some tests fail under Windows and PHP 7.0,
32- # so we disable that run for now
33- - { php-version: '7.0', os: windows-latest }
30+ # Add more specific tests
3431 include :
35- - { php-version: '5.3', os: windows-latest, experimental: false, php-extensions: 'bcmath, gd', coverage-extension: 'none' }
36- - { php-version: '5.4', os: windows-latest, experimental: false, php-extensions: 'bcmath, gd', coverage-extension: 'none' }
37- - { php-version: '5.5', os: windows-latest, experimental: false, php-extensions: 'bcmath, gd', coverage-extension: 'none' }
38- - { php-version: '5.6', os: windows-latest, experimental: false, php-extensions: 'bcmath, gd', coverage-extension: 'none' }
39- # Specify coverage extension for Ubuntu runs
40- - { php-version: '5.3', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'xdebug' }
41- - { php-version: '5.4', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'xdebug' }
42- - { php-version: '5.5', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'xdebug' }
43- - { php-version: '5.6', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'xdebug' }
44- - { php-version: '7.0', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'xdebug' }
45- # pcov is available from PHP 7.1
46- - { php-version: '7.1', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
47- - { php-version: '7.2', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
48- - { php-version: '7.3', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
49- - { php-version: '7.4', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
50- - { php-version: '8.0', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
51- - { php-version: '8.1', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
52- - { php-version: '8.2', os: ubuntu-latest, experimental: false, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
53- - { php-version: 'nightly', os: ubuntu-latest, experimental: true, php-extensions: 'bcmath, imagick, gd', coverage-extension: 'pcov' }
32+ # - { php-version: '8.2', experimental: false, os: macos-latest, php-extensions: 'bcmath, curl, imagick, gd', coverage-extension: 'none' }
33+ - { php-version: '8.2', experimental: false, os: windows-latest, php-extensions: 'bcmath, curl, imagick, gd', coverage-extension: 'none' }
34+ - { php-version: '8.3', experimental: true, os: ubuntu-latest, php-extensions: 'bcmath, curl, imagick, gd', coverage-extension: 'pcov' }
35+ - { php-version: 'nightly', experimental: true, os: ubuntu-latest, php-extensions: 'bcmath, curl, imagick, gd', coverage-extension: 'pcov' }
5436 env :
5537 PDFINFO_BINARY : ${{ (matrix.os == 'ubuntu-latest') && '/usr/bin/pdfinfo' || ((matrix.os == 'macos-latest') && '/usr/local/bin/pdfinfo' || 'C:\ProgramData\Chocolatey\bin\pdfinfo.exe') }}
5638 steps :
57- - uses : actions/checkout@v3
39+ - uses : actions/checkout@v4
5840 - name : Install pdfinfo, pdftopng or pdftoppm
5941 uses : ConorMacBride/install-package@v1
6042 with :
@@ -81,14 +63,14 @@ jobs:
8163 - name : List php modules using "no php ini" mode
8264 run : php -m -n
8365 - name : Cache module
84- uses : actions/cache@v3
66+ uses : actions/cache@v4
8567 with :
8668 path : ~/.composer/cache/
8769 key : composer-cache
8870 - name : Install dependencies
89- run : composer install --no-interaction
71+ run : composer update --no-interaction
9072 - name : Install test dependencies
91- run : cd ./tests && composer install --no-interaction && cd ../
73+ run : cd ./tests && composer update --no-interaction && cd ../
9274 - name : Run shell-based test suite
9375 if : runner.os == 'Linux'
9476 run : ./tests/launch.sh
@@ -118,18 +100,17 @@ jobs:
118100 name : Static Analysis
119101 runs-on : ubuntu-latest
120102 steps :
121- - uses : actions/checkout@v3
122- - name : Use php 8.0
103+ - uses : actions/checkout@v4
104+ - name : Use php 8.2
123105 uses : shivammathur/setup-php@v2
124106 with :
125- php-version : 8.0
126- tools : composer:v2
107+ php-version : 8.2
127108 - name : Cache module
128- uses : actions/cache@v3
109+ uses : actions/cache@v4
129110 with :
130111 path : ~/.composer/cache/
131112 key : composer-cache
132113 - name : Install phpstan
133114 run : composer require --dev phpstan/phpstan
134115 - name : Analyse files
135- run : ./vendor/bin/phpstan --memory-limit=2G
116+ run : ./vendor/bin/phpstan --memory-limit=6G
0 commit comments