Skip to content

feat: add laravel 11 support #29

feat: add laravel 11 support

feat: add laravel 11 support #29

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
laravel: [11.*, 10.*, 9.*, 8.*]
php: [ 8.2, 8.1 ]
include:
- laravel: 11.*
testbench: ^9.0
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0
- laravel: 8.*
testbench: ^6.0
exclude:
- php: 8.1
laravel: 11.*
name: "Test suite : PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}"
services:
mysql:
image: mysql:8
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel_mail_scheduler
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute tests
run: ./vendor/bin/pest
env:
CI: true
DB_PORT: ${{ job.services.mysql.ports[3306] }}
DB_USERNAME: root