Skip to content

[v1.1.0] Supports Laravel 11 & PHP 8.2, 8.3 #23

[v1.1.0] Supports Laravel 11 & PHP 8.2, 8.3

[v1.1.0] Supports Laravel 11 & PHP 8.2, 8.3 #23

Workflow file for this run

name: Build & Test (Laravel 10, 11)
env:
TESTING_ENV: ${{ secrets.TESTING_ENV }}
on:
pull_request:
branches:
- 'main'
types: [ opened, synchronize, reopened, ready_for_review ]
push:
branches:
- 'main'
jobs:
build:
strategy:
fail-fast: false
matrix:
version: ['10', '11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: success()
- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: pcov
- name: Setup
if: success()
run: |
sudo service mysql start
php -v
mysql -uroot -proot -e "CREATE DATABASE priority_queue;"
composer install --no-interaction
echo "$TESTING_ENV" > .env.testing
- name: Laravel 10 composition
if: matrix.version == '10'
run: |
composer require "laravel/framework" "^10" --with-all-dependencies
- name: Laravel 11 composition
if: matrix.version == '11'
run: |
composer require "laravel/framework" "^11" --with-all-dependencies
- name: PHPUnit tests
if: success() && github.event.pull_request.draft == false
run: |
composer test