Skip to content

Commit 0d1c05b

Browse files
committed
Add PHP 8.1 to CI
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 9de475a commit 0d1c05b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ on:
1010
jobs:
1111
test-php:
1212
name: Test on php ${{ matrix.php-version }} (${{ matrix.php-extensions }}) and ${{ matrix.os }}
13+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
1314
runs-on: ${{ matrix.os }}
15+
continue-on-error: ${{ matrix.experimental }}
1416
strategy:
1517
matrix:
1618
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
1719
php-extensions: ["dbase", ""]
1820
os: [ubuntu-latest]
21+
experimental: [false]
22+
composer-options: ['']
23+
include:
24+
- { php-version: '8.1', php-extensions: '', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
1925
steps:
2026
- uses: actions/checkout@v2
2127
- name: Use php ${{ matrix.php-version }}
@@ -30,7 +36,7 @@ jobs:
3036
path: ~/.composer/cache/
3137
key: composer-cache
3238
- name: Install dependencies
33-
run: composer install
39+
run: composer install --no-interaction ${{ matrix.composer-options }}
3440
- name: Run php tests
3541
run: composer run phpunit
3642
- name: Run php examples

0 commit comments

Comments
 (0)