Skip to content

Laravel 12 and Nova 5 support #135

Laravel 12 and Nova 5 support

Laravel 12 and Nova 5 support #135

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.2, 8.3, 8.4 ]
stability: [ prefer-lowest, prefer-stable ]
include:
- laravel: "^11.0"
nova: "^4.0"
- laravel: "^12.0"
nova: "^5.0"
name: P${{ matrix.php }} - L${{ matrix.laravel }} - N${{ matrix.nova }} - ${{ matrix.stability }}
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: nova_enum_field
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 PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
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 Composer dependencies
run: |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
composer require "illuminate/support:${{ matrix.laravel }}" "laravel/nova:${{ matrix.nova }}" "bensampo/laravel-enum:^6.0" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-ansi --no-scripts --no-progress
- name: 🧪 Run test suite
run: ./vendor/bin/phpunit
env:
DB_PORT: 3306