Skip to content

Laravel 11.x Compatability #72

Laravel 11.x Compatability

Laravel 11.x Compatability #72

Workflow file for this run

name: Laravel 11.x Compatability
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2, 8.3]
laravel: [11.x-dev]
testbench: [9.*]
name: P${{ matrix.php }} - L${{ matrix.laravel }}
services:
postgres:
image: ankane/pgvector
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: fileinfo, pdo
coverage: xdebug
- 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
- name: Execute tests
run: vendor/bin/phpunit
env:
DB_HOST: localhost
DB_DATABASE: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres