Skip to content

Commit

Permalink
Avoid the bug in another way…
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 12, 2024
1 parent d56ce57 commit e179d54
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
matrix:
dependency-version: [ stable, lowest ]
laravel: [ ^8.79, ^9.50.2, '>10.0.0 <10.48.0 || >10.48.1 <11.0.0', 11.* ]
laravel: [ ^8.79, ^9.50.2, 10.*, 11.* ]
php: [ 8.0, 8.1, 8.2, 8.3 ]
include:
- laravel: ^8.79
testbench: ^6.24
- laravel: ^9.50.2
testbench: ^7.22
- laravel: '>10.0.0 <10.48.0 || >10.48.1 <11.0.0'
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.x-dev
Expand All @@ -34,8 +34,8 @@ jobs:
- php: 8.0
laravel: 11.*
- php: 8.0
laravel: '>10.0.0 <10.48.0 || >10.48.1 <11.0.0'
laravel: 10.*

timeout-minutes: 10

name: "${{ matrix.php }} / ${{ matrix.laravel }} (${{ matrix.dependency-version }})"
Expand All @@ -50,7 +50,7 @@ jobs:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
tools: composer:v2

- name: Register composer cache directory
id: composer-cache-files-dir
run: |
Expand All @@ -67,8 +67,8 @@ jobs:
${{ runner.os }}-composer-
- name: Install dependencies
run: composer require --no-interaction --prefer-dist --no-update "illuminate/support:${{ matrix.laravel }}" "illuminate/events:${{ matrix.laravel }}" "illuminate/view:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}"
run: composer require --no-interaction --prefer-dist --no-update "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}"

- name: Set dependency version
run: composer update --no-interaction --prefer-dist --with-all-dependencies --prefer-${{ matrix.dependency-version }}

Expand Down
19 changes: 19 additions & 0 deletions tests/Components/NonStandardAttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@

class NonStandardAttributesTest extends ComponentTestCase
{
protected function setUp(): void
{
parent::setUp();

if (
version_compare($this->app->version(), '11.0.0', '>=')
&& version_compare($this->app->version(), '11.0.1', '<')
) {
$this->markTestSkipped('There is a bug in Laravel 11.0.0 that breaks this test.');
}

if (
version_compare($this->app->version(), '10.48.0', '>=')
&& version_compare($this->app->version(), '10.48.2', '<')
) {
$this->markTestSkipped('There is a bug in Laravel 10.48.0-10.48.1 that breaks this test.');
}
}

public function test_alpine_style_attributes(): void
{
$blade = '
Expand Down

0 comments on commit e179d54

Please sign in to comment.