Skip to content

Commit 7fcc6af

Browse files
committed
Add PHP 8.1 to the CI matrix
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 56aa405 commit 7fcc6af

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
1718
php-version: ["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

Comments
 (0)