Skip to content

Commit

Permalink
Add support to Laravel 11 (#9)
Browse files Browse the repository at this point in the history
feat: add support to laravel 11
  • Loading branch information
kajetan-nobel authored Nov 6, 2024
1 parent ef24cd0 commit 5955152
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 25 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@ name: run-tests

on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
php: [8.3, 8.2]
laravel: [11.*, 10.*]
stability: [prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
carbon: ^2.63
- laravel: 10.*
testbench: 8.*
carbon: ^2.63

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

Expand All @@ -40,13 +48,11 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: |
vendor/bin/phpunit --version
vendor/bin/pest --ci
run: vendor/bin/pest --ci
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changelog

## v0.1.0 - 2023-10-09
## [0.2.0] - 2024-11-06

Initial version
Add support to Laravel 11

## [0.1.0] - 2023-10-09

Initial pre-release.
Initial version
25 changes: 13 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "routegroup/laravel-imoje",
"description": "Package for imoje payments",
"version": "0.2.0",
"keywords": [
"routegroup",
"laravel",
Expand All @@ -16,20 +17,19 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.8",
"illuminate/support": "^10.0",
"illuminate/contracts": "^10.0|^11.0",
"justinrainbow/json-schema": "^5.2"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.8",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpunit/phpunit": "^10.3"
"laravel/pint": "^v1.18.1",
"nunomaduro/collision": "^v8.5.0||^v7.11.0",
"larastan/larastan": "^v2.9.10",
"orchestra/testbench": "^v9.5.2|^v8.27.2",
"pestphp/pest": "^2.36.0",
"pestphp/pest-plugin-arch": "^v2.7.0",
"pestphp/pest-plugin-laravel": "^v2.4.0"
},
"autoload": {
"psr-4": {
Expand All @@ -41,9 +41,9 @@
"Routegroup\\Imoje\\Payment\\Tests\\": "tests/"
}
},
"scripts": {
"scripts": {
"post-autoload-dump": "@composer run prepare",
"clear": "@php vendor/bin/testbench package:purge-imoje --ansi",
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": [
"@composer run prepare",
Expand All @@ -54,6 +54,7 @@
"@composer run build",
"@php vendor/bin/testbench serve"
],
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
Expand Down

0 comments on commit 5955152

Please sign in to comment.