add unittests for php 8.1 - 8.3
This commit is contained in:
parent
0329ed8f19
commit
e18493897f
1 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,7 @@ jobs:
|
||||||
MYSQL_ROOT_PASSWORD: root
|
MYSQL_ROOT_PASSWORD: root
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['8.1']
|
php-versions: ['8.1', '8.2', '8.3']
|
||||||
name: Run phpunit tests
|
name: Run phpunit tests
|
||||||
env:
|
env:
|
||||||
extensions: mysql
|
extensions: mysql
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
uses: https://code.forgejo.org/actions/cache@v4
|
uses: https://code.forgejo.org/actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./vendor/
|
./vendor/install
|
||||||
key: cache-composer-phpunit-1
|
key: cache-composer-phpunit-1
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
|
@ -54,9 +54,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
runner: self-hosted
|
runner: self-hosted
|
||||||
|
|
||||||
- name: Install PHP Unit
|
- name: Install PHPUnit and PHPUnit-Polyfills
|
||||||
if: steps.cache-composer-phpunit.outputs.cache-hit != 'true'
|
if: steps.cache-composer-phpunit.outputs.cache-hit != 'true'
|
||||||
# Polyfills requires all needed packages including phpunit itself.
|
|
||||||
run: composer require --dev yoast/phpunit-polyfills:"^3.0"
|
run: composer require --dev yoast/phpunit-polyfills:"^3.0"
|
||||||
|
|
||||||
- name: Install and cache mysqladmin needed to initialize the test database
|
- name: Install and cache mysqladmin needed to initialize the test database
|
||||||
|
|
Loading…
Reference in a new issue