@@ -12,15 +12,12 @@ jobs:
1212
1313 strategy :
1414 matrix :
15- dependencies :
16- - " lowest"
17- - " highest"
18- - " locked"
1915 php-version :
2016 - " 7.1"
2117 - " 7.2"
2218 - " 7.3"
2319 - " 7.4"
20+ - " 8.0"
2421 operating-system :
2522 - " ubuntu-latest"
2623
@@ -42,20 +39,15 @@ jobs:
4239 path : |
4340 ~/.composer/cache
4441 vendor
45- key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }} "
46- restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }} "
42+ key : " php-${{ matrix.php-version }}"
43+ restore-keys : " php-${{ matrix.php-version }}"
4744
48- - name : " Install lowest dependencies "
49- if : ${{ matrix.dependencies == 'lowest ' }}
50- run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest "
45+ - name : " Configure for PHP 8 "
46+ if : ${{ matrix.php-version == '8.0 ' }}
47+ run : " composer config platform.php 7.4.99 "
5148
52- - name : " Install highest dependencies"
53- if : ${{ matrix.dependencies == 'highest' }}
54- run : " composer update --no-interaction --no-progress --no-suggest"
49+ - name : " Test with lowest dependencies"
50+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest && vendor/bin/simple-phpunit"
5551
56- - name : " Install locked dependencies"
57- if : ${{ matrix.dependencies == 'locked' }}
58- run : " composer install --no-interaction --no-progress --no-suggest"
59-
60- - name : " Tests"
61- run : " vendor/bin/simple-phpunit"
52+ - name : " Test with highest dependencies"
53+ run : " composer update --no-interaction --no-progress --no-suggest && vendor/bin/simple-phpunit"
0 commit comments