Merge pull request #40 from TheDragonCode/dependabot/github_actions/T… #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: phpunit | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [ "8.0", "8.1", "8.2", "8.3" ] | |
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ] | |
doctrine: [ "2.0", "3.0" ] | |
exclude: | |
- laravel: "6.0" | |
doctrine: "3.0" | |
- laravel: "6.0" | |
php: "8.1" | |
- laravel: "6.0" | |
php: "8.2" | |
- laravel: "6.0" | |
php: "8.3" | |
- laravel: "7.0" | |
doctrine: "3.0" | |
- laravel: "7.0" | |
php: "8.1" | |
- laravel: "7.0" | |
php: "8.2" | |
- laravel: "7.0" | |
php: "8.3" | |
- laravel: "8.0" | |
doctrine: "2.0" | |
- laravel: "8.0" | |
php: "8.2" | |
- laravel: "8.0" | |
php: "8.3" | |
- laravel: "10.0" | |
doctrine: "2.0" | |
- laravel: "10.0" | |
php: "8.0" | |
- laravel: "11.0" | |
doctrine: "2.0" | |
- laravel: "11.0" | |
php: "8.0" | |
- laravel: "11.0" | |
php: "8.1" | |
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, Doctrine ${{ matrix.doctrine }} | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: default | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Redis | |
uses: zhulik/[email protected] | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql | |
coverage: xdebug | |
- name: Install dependencies | |
run: composer require --dev laravel/framework:^${{ matrix.laravel }} doctrine/dbal:^${{ matrix.doctrine }} | |
- name: Execute tests | |
run: sudo vendor/bin/phpunit | |
env: | |
MYSQL_HOST: 127.0.0.1 |