Skip to content

Commit

Permalink
Add PHP compatibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
c-tanner committed Sep 28, 2024
1 parent f906fd4 commit 814d994
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: compatibility
name: Laravel 9/10/11

on:
push:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: PHP 8.*

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-20.04
name: Laravel ${{ matrix.laravel }}
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
dependency-version: [prefer-lowest, prefer-stable]
include:
- php: 8.1
laravel: 9.*
testbench: 7.*
canvas: 7.*
phpunit: 9.*
- php: 8.2
laravel: 10.*
testbench: 8.*
canvas: 8.*
phpunit: 10.*
- php: 8.3
laravel: 11.*
testbench: 9.*
canvas: 9.*
phpunit: 11.*
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest

0 comments on commit 814d994

Please sign in to comment.