Skip to content
Merged
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
15 changes: 6 additions & 9 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [9.*, 10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
php: [8.2, 8.3]
laravel: [10.*, 11.*, 12.*]
dependency-version: [prefer-stable]
include:
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 11.*
php: 8.1
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
extensions: json, dom, curl, libxml, mbstring
coverage: none

Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
php: [8.3, 8.2]
laravel: [12.*, 11.*, 10.*]
dependency-version: [prefer-stable]
include:
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 11.*
php: 8.1
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
Expand All @@ -33,6 +32,11 @@ jobs:
tools: composer:v2
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
update:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@
}
],
"require": {
"php": "^8.1",
"illuminate/console": "^10.0|^11.0",
"illuminate/container": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"php": "^8.2",
"illuminate/console": "^10.0|^11.0|^12.0",
"illuminate/container": "^10.0|^11.0|^12.0",
"illuminate/database": "^10.0|^11.0|^12.0",
"illuminate/support": "^10.0|^11.0|^12.0",
"spatie/eloquent-sortable": "^4.0.0",
"spatie/laravel-package-tools": "^1.16",
"spatie/laravel-sluggable": "^3.4.2",
"spatie/laravel-translatable": "^6.5.0"
},
"require-dev": {
"larastan/larastan": "^2.0",
"larastan/larastan": "^2.0|^3.0",
"laravel/pint": "^1.13",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.18",
"orchestra/testbench": "^8.0|^9.0|^10.0",
"pestphp/pest": "^2.18|^3.7",
"spatie/test-time": "^1.3"
},
"autoload": {
Expand Down
12 changes: 0 additions & 12 deletions tests/Feature/SubscribeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@
$this->plan = Plan::factory()->create();
});

it('User model implement subscription methods', function (): void {
expect($this->user)
->toHaveMethods([
'activePlanSubscriptions',
'planSubscription',
'planSubscriptions',
'newPlanSubscription',
'subscribedPlans',
'subscribedTo',
]);
});

it('a user can subscribe to a plan', function (): void {
$this->user->newPlanSubscription('main', $this->plan);

Expand Down