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
28 changes: 18 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,26 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2]
laravel: [11.*]
stability: [prefer-stable]
testbench: [9.*]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
php: ['8.2', '8.3', '8.4', '8.5']
laravel: ['11.*', '12.*', '13.*']
livewire: ['3.*', '4.*']
exclude:
- laravel: '13.*'
php: '8.2'
include:
- laravel: '11.*'
testbench: '9.*'
- laravel: '12.*'
testbench: '10.*'
- laravel: '13.*'
testbench: '11.*'

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Livewire ${{ matrix.livewire }}

steps:
- name: Checkout code
Expand All @@ -43,8 +51,8 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "livewire/livewire:${{ matrix.livewire }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"license": "MIT",
"require": {
"php": "^8.2",
"livewire/livewire": "^3.0"
"livewire/livewire": "^3.0|^4.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0",
"larastan/larastan": "^2.9|^3.0",
"orchestra/testbench": "^9.0|^10.0",
"phpunit/phpunit": "^11.1"
},
"autoload": {
Expand Down
8 changes: 4 additions & 4 deletions src/LivewireRecaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class LivewireRecaptcha
* @return string
*/
public static function directive(
string $version = null,
string $siteKey = null,
string $theme = null,
string $size = null,
?string $version = null,
?string $siteKey = null,
?string $theme = null,
?string $size = null,
): string {
$version ??= config('services.google.recaptcha.version') ?? 'v3';

Expand Down