Skip to content

Commit 4abe9b0

Browse files
committed
Drop Laravel 7-10
Updated CI workflow (while testing is still greatly broken)
1 parent ddf2ed5 commit 4abe9b0

File tree

5 files changed

+61
-61
lines changed

5 files changed

+61
-61
lines changed

.github/workflows/ci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 15
10+
fail-fast: false
11+
matrix:
12+
php: [8.3, 8.2]
13+
laravel: [11.*]
14+
stability: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 11.*
17+
testbench: 9.*
18+
19+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: mbstring, xdebug
30+
coverage: xdebug
31+
32+
- name: Install dependencies
33+
run: |
34+
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
36+
37+
- name: Lint composer.json
38+
run: composer validate
39+
40+
- name: Run Tests
41+
run: composer test:unit
42+
43+
- name: Run Integration Tests
44+
run: composer test:integration

.github/workflows/php.yml

-48
This file was deleted.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ phpunit.phar
2727

2828
# build
2929
build
30+
31+
# laravel/pint
32+
.pint.cache.json

composer.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,18 @@
2929
}
3030
],
3131
"require": {
32-
"php": ">=7.2|^8.0",
33-
"twilio/sdk": "~6.0|^7.16",
34-
"illuminate/notifications": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
35-
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
36-
"illuminate/events": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
37-
"illuminate/queue": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0"
32+
"php": "^8.2",
33+
"twilio/sdk": "^7.16",
34+
"illuminate/notifications": "^11.0",
35+
"illuminate/support": "^11.0",
36+
"illuminate/events": "^11.0",
37+
"illuminate/queue": "^11.0"
3838
},
3939
"require-dev": {
40-
"mockery/mockery": "^1.3",
41-
"phpunit/phpunit": "^8.5|^9.5|^10.5",
42-
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0|^9.0"
40+
"laravel/pint": "^1.18",
41+
"mockery/mockery": "^1.0",
42+
"orchestra/testbench": "^9.0",
43+
"phpunit/phpunit": "^10.5"
4344
},
4445
"autoload": {
4546
"psr-4": {
@@ -53,8 +54,8 @@
5354
},
5455
"scripts": {
5556
"test": "vendor/bin/phpunit",
56-
"test:unit": "phpunit --verbose --testsuite Unit",
57-
"test:integration": "phpunit --verbose --testsuite Integration"
57+
"test:unit": "phpunit --testsuite Unit",
58+
"test:integration": "phpunit --testsuite Integration"
5859
},
5960
"config": {
6061
"sort-packages": true

tests/Integration/BaseIntegrationTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
namespace NotificationChannels\Twilio\Tests\Integration;
66

77
use NotificationChannels\Twilio\TwilioProvider;
8-
use PHPUnit\Framework\TestCase;
8+
use Orchestra\Testbench\TestCase;
99

10-
abstract class BaseIntegrationTest extends TestCase
10+
class BaseIntegrationTest extends TestCase
1111
{
1212
protected function getPackageProviders($app)
1313
{

0 commit comments

Comments
 (0)