2020
2121 strategy :
2222 matrix :
23- php : ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
23+ php : ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
2424 phpunit : ['auto']
2525 experimental : [false]
2626
@@ -55,13 +55,16 @@ jobs:
5555 - php : ' 8.0'
5656 phpunit : ' 9.3.0'
5757 experimental : false
58+ - php : ' 8.1'
59+ phpunit : ' 9.3.0'
60+ experimental : false
5861
5962 # Experimental builds.
60- - php : ' 8.2 '
61- phpunit : ' auto '
63+ - php : ' 8.1 '
64+ phpunit : ' ^10.0 '
6265 experimental : true
6366
64- - php : ' 8.0 '
67+ - php : ' 8.2 '
6568 phpunit : ' ^10.0'
6669 experimental : true
6770
7174
7275 steps :
7376 - name : Checkout code
74- uses : actions/checkout@v2
77+ uses : actions/checkout@v3
7578
7679 - name : Install PHP
7780 uses : shivammathur/setup-php@v2
@@ -82,20 +85,15 @@ jobs:
8285
8386 - name : ' Composer: set PHPUnit version for tests'
8487 if : ${{ matrix.phpunit != 'auto' }}
85- run : composer require --no-update phpunit/phpunit:"${{ matrix.phpunit }}"
88+ run : composer require --no-update phpunit/phpunit:"${{ matrix.phpunit }}" --no-interaction
8689
8790 # Install dependencies and handle caching in one go.
8891 # @link https://github.com/marketplace/actions/install-composer-dependencies
89- - name : Install Composer dependencies for PHP < 8.2
90- if : ${{ matrix.php < 8.2 }}
91- uses : " ramsey/composer-install@v1"
92-
93- # For PHP 8.2 and above, we need to install with ignore platform reqs as not all dependencies allow it yet.
94- - name : Install Composer dependencies for PHP >= 8.2
95- if : ${{ matrix.php >= 8.2 }}
96- uses : " ramsey/composer-install@v1"
92+ - name : Install Composer dependencies
93+ uses : " ramsey/composer-install@v2"
9794 with :
98- composer-options : --ignore-platform-reqs
95+ # Bust the cache at least once a month - output format: YYYY-MM-DD.
96+ custom-cache-suffix : $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
9997
10098 - name : Run the unit tests
10199 if : ${{ matrix.phpunit != '^10.0' }}
0 commit comments