Skip to content

Align with changes in dependencies. #4

Align with changes in dependencies.

Align with changes in dependencies. #4

Workflow file for this run

on:
- "pull_request"
- "push"
name: "unit"
permissions:
contents: "read"
jobs:
tests:
name: "Tests"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
mysql-version:
- "mysql-5.7"
- "mysql-8.0"
- "mariadb-10.2"
- "mariadb-10.3"
- "mariadb-10.4"
- "mariadb-10.5"
- "mariadb-10.6"
- "mariadb-10.7"
- "mariadb-10.8"
- "mariadb-10.9"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "inotify, xdebug"
- name: "Cache dependencies installed with Composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"
restore-keys: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- name: "Install dependencies with Composer"
run: "composer update --no-ansi --no-interaction --no-progress"
- name: "Install MySQL or MariaDB"
uses: "shogo82148/actions-setup-mysql@v1"
with:
mysql-version: "${{ matrix.mysql-version }}"
- name: "Add properties to the kernel"
run: "bin/plaisio --no-ansi plaisio:kernel-properties"
- name: "Run tests with PHPUnit"
run: "bin/phing unit"