@@ -12,10 +12,15 @@ jobs:
1212 test-php :
1313 name : Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
1414 runs-on : ${{ matrix.os }}
15+ continue-on-error : ${{ matrix.experimental }}
1516 strategy :
1617 matrix :
17- php-version : ["5.3", "5.4", "5.5", "5.6", "7.0 ", "7.1 ", "7.2 ", "7.3 ", "7.4 "]
18+ php-version : ["5.3", "5.4", "5.5", "5.6", "7.1 ", "7.2 ", "7.3 ", "7.4 ", "8.0 "]
1819 os : [ubuntu-latest]
20+ experimental : [false]
21+ composer-options : ['']
22+ include :
23+ - { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
1924 steps :
2025 - uses : actions/checkout@v2
2126 - name : Use php ${{ matrix.php-version }}
@@ -24,13 +29,19 @@ jobs:
2429 php-version : ${{ matrix.php-version }}
2530 extensions : mbstring
2631 coverage : xdebug
27- - name : Cache module
32+ - name : Get Composer Cache Directory
33+ id : composer-cache
34+ run : |
35+ echo "::set-output name=dir::$(composer config cache-files-dir)"
36+ - name : Restore cache
2837 uses : actions/cache@v2
2938 with :
30- path : ~/.composer/cache/
31- key : composer-cache
39+ path : ${{ steps.composer-cache.outputs.dir }}
40+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
41+ restore-keys : |
42+ ${{ runner.os }}-composer-
3243 - name : Install dependencies
33- run : composer install
44+ run : composer install --no-interaction ${{ matrix.composer-options }}
3445 - name : Install motranslator
3546 if : ${{ matrix.php-version == '7.1' }}
3647 run : composer require phpmyadmin/motranslator:^3.0
0 commit comments