-
-
Notifications
You must be signed in to change notification settings - Fork 88
Support Laravel 12.x & PHP 8.4 #166
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9c73227
Bump dependencies for Laravel 12
laravel-shift fb19672
Update GitHub Actions for Laravel 12
laravel-shift 4387f8b
wip
SRWieZ a1c5e87
wip: replaced nunomaduro/larastan to larastan/larastzan
SRWieZ 1f2b533
wip: 8.4, simplified workflow
SRWieZ 2e6a36a
wip: skip booting test for now
SRWieZ ae579f4
Fix styling
SRWieZ 88ebcdb
wip: run x server in linux
SRWieZ fb9cdfb
wip: run x server in linux
SRWieZ aebc58d
fix: exclude PHP 8.4 in Laravel 10 because of some deprecation errors
SRWieZ c743458
wip: doest it work on mac ?
SRWieZ aa9319d
feat: separated test suits
SRWieZ 76e7299
feat: simplify unit tests
SRWieZ 5be583c
fix: renamed tests
SRWieZ caadfdb
wip: reduce the number of tests for now
SRWieZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Run only Features tests | ||
# TODO: Currently failing on ubuntu-latest and prefer-lowest | ||
# TODO: Find a way to output electron logs to the console | ||
name: run-feature-tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
windows-latest, | ||
macos-latest | ||
# ubuntu-latest, | ||
] | ||
php: [ 8.4, 8.3, 8.2, 8.1 ] | ||
laravel: [ '10.*', '11.*', '12.*' ] | ||
stability: [ | ||
# prefer-lowest, | ||
prefer-stable | ||
] | ||
exclude: | ||
- laravel: 10.* | ||
php: 8.4 | ||
- laravel: 11.* | ||
php: 8.1 | ||
- laravel: 12.* | ||
php: 8.1 | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | ||
coverage: none | ||
|
||
- name: Setup problem matchers | ||
run: | | ||
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | ||
composer update --${{ matrix.stability }} --no-interaction | ||
|
||
- name: List Installed Dependencies | ||
run: composer show | ||
|
||
- name: Show pest version | ||
run: vendor/bin/pest --version | ||
|
||
- name: Execute tests on Linux | ||
if: "matrix.os == 'ubuntu-latest'" | ||
run: | | ||
xvfb-run -a vendor/bin/pest --group=feature | ||
env: | ||
DISPLAY: ":99" | ||
|
||
- name: Execute tests on Windows or Mac | ||
if: "matrix.os == 'windows-latest' || matrix.os == 'macos-latest'" | ||
run: vendor/bin/pest --group=feature |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.