Skip to content

Commit

Permalink
Supports Testbench 10 (#5)
Browse files Browse the repository at this point in the history
* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Jan 24, 2025
1 parent 76b4147 commit d63a0a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
- 8.2
- 8.3
- 8.4
testbench:
- 9
- 10
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: Laravel:11 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
name: Testbench:${{ matrix.testbench }} / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}

steps:
- name: Checkout code
Expand All @@ -42,7 +45,7 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=orchestra/testbench-dusk:^9.0"
composer-options: "--prefer-dist --no-cache --with=orchestra/testbench-dusk:${{ matrix.os == 'ubuntu-latest' && '^' || '~' }}${{ matrix.testbench }}.0"

- name: Installed dependencies
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ jobs:
- 8.2
- 8.3
- 8.4
testbench:
- 9
- 10
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: Laravel:11 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
name: Testbench:${{ matrix.testbench }} / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}

steps:
- name: Checkout code
Expand All @@ -43,7 +46,7 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=orchestra/testbench:^9.0"
composer-options: "--prefer-dist --no-cache --with=orchestra/testbench:${{ matrix.os == 'ubuntu-latest' && '^' || '~' }}${{ matrix.testbench }}.0"

- name: Installed dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
},
"require": {
"php": "^8.2",
"orchestra/testbench": "^9.5.2",
"orchestra/testbench": "^9.5.2 || ^10.0",
"pestphp/pest": "^3.4.1",
"pestphp/pest-plugin-laravel": "^3.0",
"symfony/polyfill-php82": "^1.31",
"symfony/polyfill-php83": "^1.31"
},
"require-dev": {
"laravel/pint": "^1.11",
"orchestra/testbench-dusk": "^9.5",
"orchestra/testbench-dusk": "^9.5 || ^10.0",
"phpstan/phpstan": "^1.11",
"rector/rector": "^1.0",
"symfony/var-dumper": "^7.0",
Expand Down

0 comments on commit d63a0a5

Please sign in to comment.