Skip to content
Closed
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
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,78 @@
name: CI

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

jobs:
phplint:
runs-on: ubuntu-latest


name: PHP Linting (Pint)


steps:
- name: Checkout
uses: actions/checkout@v4

- name: "laravel-pint"

- name: laravel-pint
uses: aglipanci/laravel-pint-action@latest
with:
preset: laravel
verboseMode: true
testMode: true
configPath: "pint.json"
configPath: pint.json
pintVersion: 1.18.2
onlyDirty: true

test:
runs-on: ubuntu-latest

strategy:
max-parallel: 15
fail-fast: false
matrix:
php: [8.3, 8.2]
laravel: [11.*]
laravel: ['11.*', '12.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*


name: PHP${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}


steps:
- name: Checkout
uses: actions/checkout@v4


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


- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest


- name: Lint composer.json
run: composer validate


- name: Run Tests
run: composer test:unit


- name: Run Integration Tests
run: composer test:integration
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
"require": {
"php": "^8.2",
"twilio/sdk": "^7.16 || ^8.3",
"illuminate/notifications": "^11.0",
"illuminate/support": "^11.0",
"illuminate/events": "^11.0",
"illuminate/queue": "^11.0"
"illuminate/notifications": "^11.0 || ^12.0",
"illuminate/support": "^11.0 || ^12.0",
"illuminate/events": "^11.0 || ^12.0",
"illuminate/queue": "^11.0 || ^12.0"
},
"require-dev": {
"laravel/pint": "^1.18",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^9.0",
"phpunit/phpunit": "^10.5"
"orchestra/testbench": "^9.0 || ^10.0",
"phpunit/phpunit": "^10.5 || ^11.5.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading