17
17
strategy :
18
18
matrix :
19
19
php :
20
- - ' 8.0 '
20
+ - ' 8.1 '
21
21
fail-fast : false
22
22
steps :
23
23
- name : Checkout
40
40
strategy :
41
41
matrix :
42
42
php :
43
- - ' 8.0 '
43
+ - ' 8.1 '
44
44
fail-fast : false
45
45
env :
46
46
APP_DEBUG : ' 1' # https://github.com/phpstan/phpstan-symfony/issues/37
65
65
path : ${{ steps.composercache.outputs.dir }}
66
66
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
67
67
restore-keys : ${{ runner.os }}-composer-
68
+ - name : Allow unstable project dependencies
69
+ run : composer config minimum-stability dev
68
70
- name : Update project dependencies
69
71
run : composer update --no-interaction --no-progress --ansi
70
72
- name : Require Symfony components
@@ -82,11 +84,14 @@ jobs:
82
84
continue-on-error : true
83
85
- name : Clear test app cache
84
86
run : |
85
- tests/Fixtures/app/console cache:clear --ansi
87
+ rm -Rf tests/Fixtures/app/var/cache/*
88
+ tests/Fixtures/app/console cache:warmup
86
89
- name : Run PHPStan analysis
87
90
env :
88
91
SYMFONY_PHPUNIT_VERSION : ' 9.5'
89
- run : ./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi
92
+ run :
93
+ ./vendor/bin/phpstan --version
94
+ ./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi
90
95
91
96
phpunit :
92
97
name : PHPUnit (PHP ${{ matrix.php }})
@@ -100,8 +105,9 @@ jobs:
100
105
- ' 7.3'
101
106
- ' 7.4'
102
107
- ' 8.0'
108
+ - ' 8.1'
103
109
include :
104
- - php : ' 8.0 '
110
+ - php : ' 8.1 '
105
111
coverage : true
106
112
fail-fast : false
107
113
steps :
@@ -192,8 +198,9 @@ jobs:
192
198
- ' 7.3'
193
199
- ' 7.4'
194
200
- ' 8.0'
201
+ - ' 8.1'
195
202
include :
196
- - php : ' 8.0 '
203
+ - php : ' 8.1 '
197
204
coverage : true
198
205
fail-fast : false
199
206
steps :
@@ -207,10 +214,6 @@ jobs:
207
214
extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite
208
215
coverage : pcov
209
216
ini-values : memory_limit=-1
210
- - name : Set Composer platform config
211
- if : (startsWith(matrix.php, '8.0'))
212
- run : |
213
- composer config platform.php 7.4.99
214
217
- name : Get composer cache directory
215
218
id : composercache
216
219
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
@@ -242,13 +245,13 @@ jobs:
242
245
- name : Install PHPUnit
243
246
run : vendor/bin/simple-phpunit --version
244
247
- name : Clear test app cache
245
- if : (!startsWith(matrix.php, '8.0 '))
248
+ if : (!startsWith(matrix.php, '8.'))
246
249
run : tests/Fixtures/app/console cache:clear --ansi
247
250
- name : Clear test app cache (php 8.0)
248
- if : (startsWith(matrix.php, '8.0 '))
251
+ if : (startsWith(matrix.php, '8.'))
249
252
run : rm -Rf tests/Fixtures/app/var/cache/*
250
253
- name : Run Behat tests
251
- if : (!startsWith(matrix.php, '8.0 '))
254
+ if : (!startsWith(matrix.php, '8.'))
252
255
run : |
253
256
mkdir -p build/logs/behat
254
257
if [ "$COVERAGE" = '1' ]; then
@@ -261,7 +264,7 @@ jobs:
261
264
fi
262
265
fi
263
266
- name : Run Behat tests
264
- if : (startsWith(matrix.php, '8.0 '))
267
+ if : (startsWith(matrix.php, '8.'))
265
268
run : |
266
269
mkdir -p build/logs/behat
267
270
if [ "$COVERAGE" = '1' ]; then
@@ -355,10 +358,10 @@ jobs:
355
358
path : ${{ steps.composercache.outputs.dir }}
356
359
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
357
360
restore-keys : ${{ runner.os }}-composer-
361
+ - name : Require Symfony components
362
+ run : composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi --no-update
358
363
- name : Update project dependencies
359
364
run : composer update --no-interaction --no-progress --ansi --prefer-lowest
360
- - name : Require Symfony components
361
- run : composer require symfony/uid --dev --no-interaction --no-progress --ansi
362
365
- name : Clear test app cache
363
366
run : tests/Fixtures/app/console cache:clear --ansi
364
367
- name : Install PHPUnit
@@ -395,10 +398,10 @@ jobs:
395
398
path : ${{ steps.composercache.outputs.dir }}
396
399
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
397
400
restore-keys : ${{ runner.os }}-composer-
401
+ - name : Require Symfony components
402
+ run : composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi --no-update
398
403
- name : Update project dependencies
399
404
run : composer update --no-interaction --no-progress --ansi --prefer-lowest
400
- - name : Require Symfony components
401
- run : composer require symfony/uid --dev --no-interaction --no-progress --ansi
402
405
- name : Install PHPUnit
403
406
run : vendor/bin/simple-phpunit --version
404
407
- name : Clear test app cache
@@ -604,6 +607,7 @@ jobs:
604
607
php :
605
608
- ' 7.4'
606
609
- ' 8.0'
610
+ - ' 8.1'
607
611
fail-fast : false
608
612
env :
609
613
APP_ENV : elasticsearch
@@ -693,15 +697,13 @@ jobs:
693
697
run : vendor/bin/simple-phpunit
694
698
695
699
phpunit-symfony-next :
696
- name : PHPUnit (PHP ${{ matrix.php }}) (Symfony ${{ matrix.symfony }} )
700
+ name : PHPUnit (PHP ${{ matrix.php }}) (Symfony dev )
697
701
runs-on : ubuntu-latest
698
702
timeout-minutes : 20
699
703
strategy :
700
704
matrix :
701
705
php :
702
- - ' 8.0'
703
- symfony :
704
- - ' 5.4'
706
+ - ' 8.1'
705
707
fail-fast : false
706
708
env :
707
709
# See https://github.com/doctrine/DoctrineMongoDBBundle/pull/673
@@ -713,7 +715,7 @@ jobs:
713
715
- name : Setup PHP
714
716
uses : shivammathur/setup-php@v2
715
717
with :
716
- php-version : ' 8.0 '
718
+ php-version : ' 8.1 '
717
719
tools : pecl, composer
718
720
extensions : intl, bcmath, curl, openssl, mbstring
719
721
coverage : none
@@ -734,21 +736,7 @@ jobs:
734
736
- name : Update project dependencies
735
737
run : composer update --no-interaction --no-progress --ansi
736
738
- name : Require Symfony components
737
- run : composer require symfony/uid --dev --no-interaction --no-progress --ansi
738
- - name : Flag held back Symfony packages
739
- env :
740
- symfony_version : ${{ matrix.symfony }}
741
- run : |
742
- version_pattern=$symfony_version.x-dev
743
- if [ "${symfony_version%.4}" != "$symfony_version" ]; then
744
- current_major=${symfony_version%.4}
745
- next_major=$((current_major + 1))
746
- version_pattern=$version_pattern'|'$next_major.0.x-dev'|'dev-master
747
- fi
748
- version_pattern=$(echo "$version_pattern" | sed -r 's/\./\\./g')
749
- symfony_packages=$(composer show symfony/* | tr -s ' ' '\t' | cut -f1-2 | grep -vE 'polyfill|contracts|mercure')
750
- ! echo "$symfony_packages" | grep -vE "$version_pattern"
751
- continue-on-error : true
739
+ run : composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi
752
740
- name : Install PHPUnit
753
741
run : vendor/bin/simple-phpunit --version
754
742
- name : Clear test app cache
@@ -757,23 +745,21 @@ jobs:
757
745
run : vendor/bin/simple-phpunit
758
746
759
747
behat-symfony-next :
760
- name : Behat (PHP ${{ matrix.php }}) (Symfony ${{ matrix.symfony }} )
748
+ name : Behat (PHP ${{ matrix.php }}) (Symfony dev )
761
749
runs-on : ubuntu-latest
762
750
timeout-minutes : 20
763
751
strategy :
764
752
matrix :
765
753
php :
766
- - ' 8.0'
767
- symfony :
768
- - ' 5.4'
754
+ - ' 8.1'
769
755
fail-fast : false
770
756
steps :
771
757
- name : Checkout
772
758
uses : actions/checkout@v2
773
759
- name : Setup PHP
774
760
uses : shivammathur/setup-php@v2
775
761
with :
776
- php-version : ' 8.0 '
762
+ php-version : ' 8.1 '
777
763
tools : pecl, composer
778
764
extensions : intl, bcmath, curl, openssl, mbstring
779
765
coverage : none
@@ -796,21 +782,7 @@ jobs:
796
782
- name : Update project dependencies
797
783
run : composer update --no-interaction --no-progress --ansi
798
784
- name : Require Symfony components
799
- run : composer require symfony/uid --dev --no-interaction --no-progress --ansi
800
- - name : Flag held back Symfony packages
801
- env :
802
- symfony_version : ${{ matrix.symfony }}
803
- run : |
804
- version_pattern=$symfony_version.x-dev
805
- if [ "${symfony_version%.4}" != "$symfony_version" ]; then
806
- current_major=${symfony_version%.4}
807
- next_major=$((current_major + 1))
808
- version_pattern=$version_pattern'|'$next_major.0.x-dev'|'dev-master
809
- fi
810
- version_pattern=$(echo "$version_pattern" | sed -r 's/\./\\./g')
811
- symfony_packages=$(composer show symfony/* | tr -s ' ' '\t' | cut -f1-2 | grep -vE 'polyfill|contracts|mercure')
812
- ! echo "$symfony_packages" | grep -vE "$version_pattern"
813
- continue-on-error : true
785
+ run : composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi
814
786
- name : Install PHPUnit
815
787
run : vendor/bin/simple-phpunit --version
816
788
- name : Clear test app cache
@@ -825,7 +797,7 @@ jobs:
825
797
strategy :
826
798
matrix :
827
799
php :
828
- - ' 8.0 '
800
+ - ' 8.1 '
829
801
fail-fast : false
830
802
steps :
831
803
- name : Checkout
@@ -906,7 +878,7 @@ jobs:
906
878
strategy :
907
879
matrix :
908
880
php :
909
- - ' 8.0 '
881
+ - ' 8.1 '
910
882
fail-fast : false
911
883
steps :
912
884
- name : Checkout
@@ -965,6 +937,7 @@ jobs:
965
937
php :
966
938
- ' 7.4'
967
939
- ' 8.0'
940
+ - ' 8.1'
968
941
fail-fast : false
969
942
env :
970
943
APP_ENV : sqlite
@@ -990,7 +963,7 @@ jobs:
990
963
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
991
964
restore-keys : ${{ runner.os }}-composer-
992
965
- name : Set Composer platform config
993
- if : (startsWith(matrix.php, '8.0 '))
966
+ if : (startsWith(matrix.php, '8.'))
994
967
run : |
995
968
composer config platform.php 7.4.99
996
969
- name : Update project dependencies
@@ -1013,6 +986,7 @@ jobs:
1013
986
php :
1014
987
- ' 7.4'
1015
988
- ' 8.0'
989
+ - ' 8.1'
1016
990
fail-fast : false
1017
991
env :
1018
992
APP_ENV : sqlite
@@ -1038,7 +1012,7 @@ jobs:
1038
1012
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
1039
1013
restore-keys : ${{ runner.os }}-composer-
1040
1014
- name : Set Composer platform config
1041
- if : (startsWith(matrix.php, '8.0 '))
1015
+ if : (startsWith(matrix.php, '8.'))
1042
1016
run : |
1043
1017
composer config platform.php 7.4.99
1044
1018
- name : Update project dependencies
@@ -1145,7 +1119,7 @@ jobs:
1145
1119
mkdir -p build/logs/behat
1146
1120
vendor/bin/behat --out=std --format=progress --format=junit --out=build/logs/behat/junit --profile=default --no-interaction --tags='~@php8'
1147
1121
- name : Run Behat tests
1148
- if : (startsWith(matrix.php, '8.0 '))
1122
+ if : (startsWith(matrix.php, '8.'))
1149
1123
run : |
1150
1124
mkdir -p build/logs/behat
1151
1125
vendor/bin/behat --out=std --format=progress --format=junit --out=build/logs/behat/junit --profile=default --no-interaction
0 commit comments