Skip to content

Commit

Permalink
Merge pull request #25 from laravel-shift/l11-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravmak committed May 21, 2024
2 parents 4a01b8e + 09691fd commit d655c6d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
59 changes: 31 additions & 28 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
name: run-tests

on: [push, pull_request]
on:
- push
- pull_request

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0, 7.4, 7.3]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }}
- name: Execute tests
run: vendor/bin/phpunit
tests:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.3, 7.4, 8.0, 8.1, '8.2']
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --${{ matrix.dependency-version }}
- name: Execute tests
run: vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"description": "Make debugging easier by adding more data to your laravel logs",
"require": {
"php": "^7.3|^8.0",
"illuminate/support": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"monolog/monolog": "^1.23|^2.1.1|^3.2"
},
"require-dev": {
"phpunit/phpunit": "^9.3.9",
"orchestra/testbench": "^6.23.0|^7.0.0|^8.0"
"phpunit/phpunit": "^9.3.9|^10.5",
"orchestra/testbench": "^6.23.0|^7.0.0|^8.0|^9.0"
},
"license": "MIT",
"authors": [
Expand Down

0 comments on commit d655c6d

Please sign in to comment.