Skip to content
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4]
laravel: [6.*]
php: [8.2, 8.3, 8.4]
laravel: [12.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 6.*
testbench: 4.*
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extension-csv: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
}
],
"require": {
"php": "^7.3 || ^8.0"
"php": "^8.2",
"illuminate/support": "^12.0",
"illuminate/database": "^12.0",
"illuminate/contracts": "^12.0",
"nesbot/carbon": "^3.0"
},
"require-dev": {
"symfony/var-dumper": "^4.3 || ^5.1 || ^6.0",
"phpunit/phpunit": "^8.2 || ^9.3"
"orchestra/testbench": "^10.0",
"phpunit/phpunit": "^11.0",
"symfony/var-dumper": "^7.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/create_wallet_plus_tables.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWalletPlusTables extends Migration
return new class extends Migration
{
/**
* Run the migrations.
Expand Down Expand Up @@ -53,4 +53,4 @@ class CreateWalletPlusTables extends Migration
Schema::dropIfExists('wallets');
Schema::dropIfExists('wallet_ledgers');
}
}
};
32 changes: 10 additions & 22 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="CoreProc Test Suite">
<testsuite name="Package Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<source>
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions src/WalletPlusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class WalletPlusServiceProvider extends ServiceProvider
/**
* Bootstrap the application services.
*/
public function boot(Filesystem $filesystem)
public function boot(Filesystem $filesystem): void
{
$this->publishes([
__DIR__ . '/../database/migrations/create_wallet_plus_tables.php.stub' =>
Expand All @@ -22,7 +22,7 @@ public function boot(Filesystem $filesystem)
/**
* Register the application services.
*/
public function register()
public function register(): void
{
// $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'wallet-plus');
}
Expand Down
Loading