@@ -4,22 +4,24 @@ on: [push, pull_request]
44
55jobs :
66 ci :
7+ defaults :
8+ run :
9+ shell : bash
710 name : CI
811 strategy :
912 fail-fast : false
1013 matrix :
11- php-version : ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
14+ php-version : ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
1215 os : [ubuntu-latest, macOS-latest, windows-latest]
1316 runs-on : ${{ matrix.os }}
1417 steps :
1518 - name : Set git config
16- shell : bash
1719 run : |
1820 git config --global core.autocrlf false
1921 git config --global core.symlinks true
2022 if : runner.os == 'Windows'
2123
22- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v3
2325
2426 - name : Setup PHP${{ matrix.php-version }}@${{ matrix.os }}
2527 uses : shivammathur/setup-php@v2
@@ -33,12 +35,12 @@ jobs:
3335
3436 - name : Get composer cache directory
3537 id : composer-cache
36- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
38+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3739
3840 - name : Cache dependencies on PHP(=7.1)@${{ matrix.os }}
3941 if : matrix.php-version == '7.1'
4042 id : dependencies-cache-71
41- uses : actions/cache@v2
43+ uses : actions/cache@v3
4244 with :
4345 path : ${{ steps.composer-cache.outputs.dir }}
4446 key : ${{ matrix.os }}-php${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
4850 - name : Cache dependencies on PHP(=7.2)@${{ matrix.os }}
4951 if : matrix.php-version == '7.2'
5052 id : dependencies-cache-72
51- uses : actions/cache@v2
53+ uses : actions/cache@v3
5254 with :
5355 path : ${{ steps.composer-cache.outputs.dir }}
5456 key : ${{ matrix.os }}-php${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
5860 - name : Cache dependencies on PHP(>7.2)@${{ matrix.os }}
5961 if : matrix.php-version > 7.2
6062 id : dependencies-cache
61- uses : actions/cache@v2
63+ uses : actions/cache@v3
6264 with :
6365 path : ${{ steps.composer-cache.outputs.dir }}
6466 key : ${{ matrix.os }}-php-${{ hashFiles('**/composer.lock') }}
6870 - name : Install dependencies
6971 run : composer install --no-interaction --no-progress
7072
71- - run : vendor/bin/phpstan analyse --no-progress
73+ - name : Environments
74+ run : |
75+ openssl version
76+ php --ri openssl
77+ php --ri libxml
78+ php --ri curl
79+
80+ - run : vendor/bin/phpstan analyse --no-progress --memory-limit=-1 -c phpstan.v7.1.neon
81+ if : matrix.php-version == '7.1'
82+ id : phpstan-php-7_1
83+
84+ - run : vendor/bin/phpstan analyse --no-progress --memory-limit=-1
85+ if : 7.1 < matrix.php-version && matrix.php-version < 8.2
86+ id : phpstan-php-7_2-8_1
87+
88+ - run : vendor/bin/phpstan analyse --no-progress --memory-limit=-1 -c phpstan.v8.2.neon
89+ if : matrix.php-version == '8.2'
90+ id : phpstan-php-8_2
7291
7392 - run : |
7493 make keygen
0 commit comments