Skip to content

Laravel 11.x Compatibility (#93) #245

Laravel 11.x Compatibility (#93)

Laravel 11.x Compatibility (#93) #245

Workflow file for this run

name: CI laravel-ovh
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, '8.2']
illuminate: ['10.*']
dependency-version: [prefer-stable]
name: P${{ matrix.php }} - L${{ matrix.illuminate }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Detect Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Setup Composer Cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-illuminate-${{ matrix.illuminate }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Install Composer Packages
run: |
composer require "illuminate/support:${{ matrix.illuminate }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute PHP Linter
run: composer test:lint
- name: Execute PHPUnit Tests
run: composer test:unit