@@ -11,14 +11,14 @@ name: CI
1111jobs :
1212 php-lint :
1313 name : PHP Lint
14- runs-on : ubuntu-20 .04
14+ runs-on : ubuntu-22 .04
1515 strategy :
1616 matrix :
17- php-version : [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
17+ php-version : [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
1818
1919 steps :
2020 - name : Checkout
21- uses : actions/checkout@v2
21+ uses : actions/checkout@v3
2222
2323 - name : Install PHP
2424 uses : shivammathur/setup-php@v2
@@ -27,12 +27,12 @@ jobs:
2727 coverage : none
2828
2929 - name : PHP Lint
30- run : find lib tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
30+ run : find src tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
3131
3232 unit-tests :
3333 name : Unit tests
3434
35- runs-on : ubuntu-20 .04
35+ runs-on : ubuntu-22 .04
3636
3737 needs : [ php-lint ]
3838
@@ -42,12 +42,12 @@ jobs:
4242 php-version : [ '5.6', '7.0', '7.1', '7.2', '7.3' ]
4343 coverage : [ 'none' ]
4444 include :
45- - php-version : 7.4
45+ - php-version : ' 7.4'
4646 coverage : xdebug
4747
4848 steps :
4949 - name : Checkout
50- uses : actions/checkout@v2
50+ uses : actions/checkout@v3
5151
5252 - name : Install PHP
5353 uses : shivammathur/setup-php@v2
5757 coverage : " ${{ matrix.coverage }}"
5858
5959 - name : Cache dependencies installed with composer
60- uses : actions/cache@v1
60+ uses : actions/cache@v3
6161 with :
6262 path : ~/.cache/composer
6363 key : php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
@@ -79,26 +79,37 @@ jobs:
7979 run : |
8080 ./vendor/bin/codacycoverage clover build/coverage/xml
8181
82- phpstan :
83- name : PHPStan
82+ static-analysis :
83+ name : Static Analysis
8484
85- runs-on : ubuntu-20 .04
85+ runs-on : ubuntu-22 .04
8686
8787 needs : [ php-lint ]
8888
89+ strategy :
90+ fail-fast : false
91+ matrix :
92+ include :
93+ - command : sniffer
94+ php-version : ' 7.4'
95+ - command : fixer
96+ php-version : ' 7.4'
97+ - command : stan
98+ php-version : ' 7.4'
99+
89100 steps :
90101 - name : Checkout
91- uses : actions/checkout@v2
102+ uses : actions/checkout@v3
92103
93104 - name : Install PHP
94105 uses : shivammathur/setup-php@v2
95106 with :
96- php-version : 7.4
107+ php-version : ${{ matrix.php-version }}
97108 tools : " composer:v2, phive"
98109 coverage : none
99110
100111 - name : Cache dependencies installed with composer
101- uses : actions/cache@v1
112+ uses : actions/cache@v3
102113 with :
103114 path : ~/.cache/composer
104115 key : php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
@@ -112,7 +123,7 @@ jobs:
112123
113124 - name : Install development tools
114125 run : |
115- echo y | phive --no-progress update phpstan;
126+ phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,D32680D5957DC7116BE29C14CF1A108D0E7AE720
116127
117- - name : Run PHPStan
118- run : " composer ci:php:stan "
128+ - name : Run Command
129+ run : composer ci:php:${{ matrix.command }}
0 commit comments