-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from Sammyjo20/feature/upgrade-codebase
Feature | Upgrade Codebase & Added Support for PHP 8.3
- Loading branch information
Showing
70 changed files
with
1,070 additions
and
1,112 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -173,7 +173,7 @@ Special thanks to @codepotato for the logo! ❤️ | |
|
||
## Security | ||
|
||
If you find any security related issues, please send me an email to [email protected]. | ||
If you find any security related issues, please send an email to **[email protected]** | ||
|
||
## And that's it! ✨ | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Security Policy | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
If you discover any security related issues, please email **[email protected]** instead of using the issue tracker. |
This file contains 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 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,28 @@ | ||
name: PHPStan | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
phpstan: | ||
name: phpstan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
coverage: none | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Run PHPStan | ||
run: ./vendor/bin/phpstan analyse --error-format=github |
This file contains 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 |
---|---|---|
@@ -1,42 +1,51 @@ | ||
name: Tests | ||
name: tests | ||
|
||
on: [pull_request, push] | ||
on: | ||
push: | ||
branches: | ||
- 'v3.0' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [8.1, 8.2] | ||
laravel: [^9.0, ^10.0] | ||
dependency-version: [prefer-lowest, prefer-stable] | ||
include: | ||
- laravel: ^9.0 | ||
testbench: ^7.0 | ||
- laravel: ^10.0 | ||
testbench: ^8.0 | ||
os: [ ubuntu-latest, windows-latest ] | ||
php: [ 8.1, 8.2, 8.3 ] | ||
stability: [ prefer-lowest, prefer-stable ] | ||
|
||
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} | ||
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring, zip, fileinfo | ||
coverage: none | ||
|
||
- name: Install composer dependencies | ||
- name: Install Node Dependencies | ||
run: | | ||
npm install | ||
- 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 update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | ||
composer update --${{ matrix.stability }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: composer test | ||
run: ./vendor/bin/pest |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
"authors": [ | ||
{ | ||
"name": "Sam Carré", | ||
"email": "[email protected]" | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
|
@@ -21,11 +22,11 @@ | |
"league/flysystem": "^3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.3", | ||
"orchestra/testbench": "^7.0 || ^8.0", | ||
"friendsofphp/php-cs-fixer": "^3.1.0", | ||
"spatie/ray": "^1.33", | ||
"pestphp/pest": "^1.21" | ||
"pestphp/pest": "^2.25", | ||
"phpstan/phpstan": "^1.10" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
|
@@ -45,7 +46,10 @@ | |
"./vendor/bin/pest" | ||
], | ||
"fix-code": [ | ||
"./vendor/bin/php-cs-fixer fix" | ||
"./vendor/bin/php-cs-fixer fix --allow-risky=yes" | ||
], | ||
"pstan": [ | ||
"./vendor/bin/phpstan analyse" | ||
] | ||
}, | ||
"minimum-stability": "stable", | ||
|
This file contains 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?php | ||
|
||
return [ | ||
declare(strict_types=1); | ||
|
||
return [ | ||
'compiler' => [ | ||
|
||
/* | ||
|
This file contains 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,4 @@ | ||
{ | ||
"/tests/Fixtures/Public/app.css": "/tests/Fixtures/Public/app.css", | ||
"/tests/Fixtures/Public/lasso-logo.png": "/tests/Fixtures/Public/lasso-logo.png" | ||
} |
This file contains 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,11 @@ | ||
{ | ||
"name": "lasso", | ||
"version": "1.0.0", | ||
"description": "Yeehaw", | ||
"scripts": { | ||
"production": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"devDependencies": { | ||
"laravel-mix": "^6.0.49" | ||
} | ||
} |
This file contains 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,14 @@ | ||
############################################################################################# | ||
# Don't edit this config file directly. # | ||
# For temporary, or local overrides, create a file named 'phpstan.neon' alongside this one. # | ||
############################################################################################# | ||
|
||
parameters: | ||
# Add one of the editorUrl's in your phpstan.neon file for direct editor/IDE links in the terminal. | ||
#editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' | ||
#editorUrl: 'vscode://file/%%file%%:%%line%%' | ||
|
||
level: 7 | ||
|
||
paths: | ||
- src |
This file contains 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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true"> | ||
<testsuites> | ||
<testsuite name="Lasso Test Suite"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
This file contains 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 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.