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
32 changes: 19 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,35 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [7.4, 8.0, 8.1]
laravel: [8.*, 9.*, 10.*]
php: [8.1, 8.2, 8.3, 8.4]
laravel: [10.*, 11.*, 12.*, 13.*]
stability: [prefer-stable]
include:
- laravel: 13.*
testbench: 11.*
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 10.*
php: 7.4
- laravel: 9.*
php: 7.4
# Laravel 13 requires PHP 8.3+
- laravel: 13.*
php: 8.1
- laravel: 13.*
php: 8.2
# Laravel 11 and 12 require PHP 8.2+
- laravel: 12.*
php: 8.1
- laravel: 11.*
php: 8.1

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
}
],
"require": {
"php": "^7.4|^8.0|^8.1|^8.2|^8.3",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
"php": "^7.4|^8.0|^8.1|^8.2|^8.3|^8.4",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
"guzzlehttp/guzzle": "^7.0"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"phpunit/phpunit": "^8.0 || ^9.5 || ^10.5 || ^11.0 || ^12.0"
},
"autoload": {
Expand Down
15 changes: 3 additions & 12 deletions tests/FriendlyCaptchaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ public function setUp(): void
$this->captcha = new FriendlyCaptcha('{secret-key}', '{site-key}', 'https://api.friendlycaptcha.com/api/v1/puzzle', 'https://api.friendlycaptcha.com/api/v1/siteverify');
}

/**
* @test
*/
public function it_can_render_unpkg_widget_script_correctly()
public function test_it_can_render_unpkg_widget_script_correctly()
{
$this->assertTrue($this->captcha instanceof FriendlyCaptcha);

Expand All @@ -39,10 +36,7 @@ public function it_can_render_unpkg_widget_script_correctly()
$this->assertStringContainsString($expectedScriptTwo, $this->captcha->renderWidgetScripts());
}

/**
* @test
*/
public function it_can_render_jsdelivr_widget_script_correctly()
public function test_it_can_render_jsdelivr_widget_script_correctly()
{
$this->assertTrue($this->captcha instanceof FriendlyCaptcha);

Expand All @@ -53,10 +47,7 @@ public function it_can_render_jsdelivr_widget_script_correctly()
$this->assertStringContainsString($expectedScriptTwo, $this->captcha->renderWidgetScripts('jsdelivr'));
}

/**
* @test
*/
public function it_can_render_widget_correctly()
public function test_it_can_render_widget_correctly()
{
$this->assertTrue($this->captcha instanceof FriendlyCaptcha);

Expand Down
Loading