Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/workbench dusk #17

Merged
merged 23 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from 15 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
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ba11d6aba92e038053ced776acbea2162480bced
2b933d9eef0263a6907b2d11e0917f6d9c6bed20
17 changes: 9 additions & 8 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
matrix:
php: [8.2, 8.3]
laravel: [^10, ^11]
dependency-version: [prefer-lowest, prefer-stable]
dependency-version: [prefer-stable]
# dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: Checkout repository
Expand All @@ -49,13 +50,13 @@ jobs:
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Restore Composer Cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
# - name: Restore Composer Cache
# uses: actions/cache@v4
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-composer-

- name: Install Composer dependecies
run: composer update --no-progress --optimize-autoloader --${{ matrix.dependency-version }}
Expand Down
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2024] [Gerrit Willem Leuverink]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
35 changes: 14 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
"illuminate/support": "^10|^11"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.30",
"laravel/pint": "^1.13",
"larastan/larastan": "^2.8",
"squizlabs/php_codesniffer": "^3.7",
"tightenco/duster": "^2.4",
"tightenco/tlint": "^9.1",
"pestphp/pest": "^2.30",
"spatie/laravel-ignition": "^2.3",
"symfony/thanks": "^1.2",
"orchestra/testbench": "^8",
"orchestra/testbench-dusk": "^8",
"livewire/livewire": "^3.4"
"friendsofphp/php-cs-fixer": "^3.60",
"laravel/pint": "^1.17",
"larastan/larastan": "^2.9",
"squizlabs/php_codesniffer": "^3.10",
"tightenco/duster": "^3.0",
"tightenco/tlint": "^9.3",
"pestphp/pest": "^2.35",
"spatie/laravel-ignition": "^2.8",
"symfony/thanks": "^1.3",
"orchestra/testbench": "^9",
"orchestra/testbench-dusk": "^9",
"livewire/livewire": "^3.5"
},
"config": {
"allow-plugins": {
Expand All @@ -73,36 +73,29 @@
"@prepare",
"@dusk:install-chromedriver"
],

"setup-workbench": [
"./vendor/bin/testbench dusk:chrome-driver",
"./vendor/bin/dusk-updater detect --auto-update",
"cd ./workbench && npm ci",
"ln -sf $PWD/workbench/jsconfig.json ./vendor/orchestra/testbench-core/laravel",
"ln -sf $PWD/workbench/node_modules/ ./vendor/orchestra/testbench-core/laravel",
"ln -sf $PWD/workbench/resources/js/ ./vendor/orchestra/testbench-core/laravel/resources",
"ln -sf $PWD/workbench/resources/css/ ./vendor/orchestra/testbench-core/laravel/resources"
],

"serve": [
"@setup-workbench",
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve"
"@php vendor/bin/testbench serve --ansi"
],

"lint": "vendor/bin/duster lint",
"fix": "vendor/bin/duster fix",
"analyze": "vendor/bin/phpstan analyse",
"baseline": "vendor/bin/phpstan analyse --generate-baseline",

"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"dusk:install-chromedriver": "@php vendor/bin/dusk-updater detect --auto-update --ansi",

"test": "@php vendor/bin/pest --group=feature,unit",
"test-browser": "@php vendor/bin/pest --exclude-group=feature,unit",
"test-all": "@php vendor/bin/pest --bail"

}
}
Loading
Loading