Skip to content

Update README.md

Update README.md #28

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" \
"orchestra/testbench" "^8" \
--with-all-dependencies
- name: Laravel 11 composition
if: matrix.version == '11'
run: |
composer require "laravel/framework" "^11" \
"orchestra/testbench" "^9" \
--with-all-dependencies
- name: PHPUnit tests
if: success()
run: |
composer test