Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Move Stripe addon into mono repo #1551

Merged
merged 7 commits into from
Feb 14, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/split_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
package: ["admin", "core", "opayo", "paypal", "scout-database-engine", "table-rate-shipping"]
package: ["admin", "core", "opayo", "paypal", "scout-database-engine", "table-rate-shipping", "stripe"]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/stripe_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Lunar Stripe Tests
on:
pull_request:
defaults:
run:
working-directory: ./
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2]
laravel: [10.*]
phpunit-versions: ['latest']
name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, amqp, dba
tools: composer:v2, phpunit:${{ matrix.php }}

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --prefer-stable --no-interaction --no-suggest

- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
APP_ENV: testing
DB_CONNECTION: testing
DB_DATABASE: ":memory:"
run: vendor/bin/pest --testsuite stripe
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@
"ext-bcmath": "*",
"ext-exif": "*",
"ext-intl": "*",
"filament/filament": "^3.1.23",
"filament/filament": "^3.2.25",
"filament/spatie-laravel-media-library-plugin": "^3.0-stable",
"guzzlehttp/guzzle": "^7.3",
"illuminate/http": "^10.0",
"kalnoy/nestedset": "^6.0",
"laravel/framework": "^10.0",
"laravel/scout": "^10.0",
"leandrocfe/filament-apex-charts": "^3.1.2",
"livewire/livewire": "^3.0",
"lukascivil/treewalker": "0.9.1",
"marvinosswald/filament-input-select-affix": "^0.1.0",
"php": "^8.1",
"spatie/laravel-activitylog": "^4.4",
"spatie/laravel-blink": "^1.6",
"spatie/laravel-medialibrary": "^10.0.0",
"spatie/laravel-permission": "^5.10",
"stripe/stripe-php": "^7.114",
"technikermathe/blade-lucide-icons": "^v2.24.0"
},
"require-dev": {
Expand Down Expand Up @@ -65,7 +67,8 @@
],
"Lunar\\ScoutDatabaseEngine\\": "packages/scout-database-engine/src",
"Lunar\\Shipping\\": "packages/table-rate-shipping/src",
"Lunar\\Shipping\\Database\\Factories\\": "packages/table-rate-shipping/database/factories"
"Lunar\\Shipping\\Database\\Factories\\": "packages/table-rate-shipping/database/factories",
"Lunar\\Stripe\\": "packages/stripe/src/"
}
},
"autoload-dev": {
Expand All @@ -76,19 +79,22 @@
"Lunar\\Tests\\Paypal\\": "tests/paypal",
"Lunar\\Tests\\ScoutDatabaseEngine\\": "tests/scout-database-engine",
"Lunar\\Tests\\Shipping\\": "tests/shipping",
"Lunar\\Shipping\\Tests\\": "packages/table-rate-shipping/tests"
"Lunar\\Shipping\\Tests\\": "packages/table-rate-shipping/tests",
"Lunar\\Tests\\Stripe\\": "tests/stripe"
}
},
"extra": {
"lunar": {
"name": [
"Table Rate Shipping",
"Opayo Payments",
"Paypal Payments"
"Paypal Payments",
"Stripe Payments"
]
},
"laravel": {
"providers": [
"Lunar\\Stripe\\StripePaymentsServiceProvider",
"Lunar\\Paypal\\PaypalServiceProvider",
"Lunar\\Admin\\LunarPanelProvider",
"Lunar\\Opayo\\OpayoServiceProvider",
Expand All @@ -104,6 +110,7 @@
"lunarphp/opayo": "self.version",
"lunarphp/paypal": "self.version",
"lunarphp/scout-database-engine": "self.version",
"lunarphp/stripe": "self.version",
"lunarphp/table-rate-shipping": "self.version"
},
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/stripe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
composer.lock
/vendor
.phpunit.result.cache
/.idea
/.vscode
.DS_Store
Loading
Loading