Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 33 additions & 27 deletions .github/workflows/build_laravel.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
name: Build on specific PHP & Laravel versions

on:
pull_request:
branches:
- 'main'
types: [ opened, synchronize, reopened, ready_for_review ]
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- 'main'
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [8.2, 8.3]
laravel: [ '^11' ]
fail-fast: false
matrix:
php: [8.2, 8.3]
laravel: ['12.0', ^11]

steps:
- uses: actions/checkout@v3
if: success()
- uses: actions/checkout@v3
if: success()

- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov

- name: Install dependencies
uses: nick-fields/retry@v2
Expand All @@ -33,16 +40,15 @@ jobs:
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress

- name: Setup
if: success()
run: |
php -v
touch coverage.xml
mv .env.mysql .env
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE eloquentdocs;"

- name: PHPUnit tests
if: success()
run: |
composer test
- name: Setup
if: success()
run: |
php -v
touch coverage.xml
mv .env.mysql .env
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE eloquentdocs;"

- name: PHPUnit tests
if: success()
run: composer test
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"type": "library",
"require": {
"php": "^8.2|^8.3",
"laravel/framework": "^11",
"doctrine/dbal": "^3.8"
"laravel/framework": "^11|^12.0",
"doctrine/dbal": "^3.8|^4.2"
},
"require-dev": {
"fakerphp/faker": "^1.20",
"mockery/mockery": "^1.5",
"orchestra/testbench": "^9",
"phpunit/phpunit": "^10",
"phpunit/php-code-coverage": "^10"
"orchestra/testbench": "^9|^10.0",
"phpunit/phpunit": "^10|^11.5.3",
"phpunit/php-code-coverage": "^10|^11.0"
},
"license": "MIT",
"authors": [
Expand Down