Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
f9aedbe
Added double quote escaping
jaxwilko Jan 14, 2022
cdbf2f4
Merge branch 'develop' into wip/config-writer-replacement
jaxwilko Jan 14, 2022
57a649a
Updated ApplicationExceptions to SystemExceptions
jaxwilko Jan 14, 2022
cda726f
Updated test to match the correct exception
jaxwilko Jan 14, 2022
dcef6b1
Added support for setting env() args to correct types
jaxwilko Jan 14, 2022
bae73fa
Added config sort tests
jaxwilko Jan 14, 2022
f0c9454
Added sort() method for ConfigFile
jaxwilko Jan 14, 2022
110afdf
Simplified internal sorting methods
jaxwilko Jan 15, 2022
bf6c16e
Fixed test to be consitant across php versions (RFC: stable_sorting)
jaxwilko Jan 15, 2022
4f4a00a
Switched line ending to unix style when creating empty file
jaxwilko Jan 15, 2022
715abd7
Switched line ending for rendered output
jaxwilko Jan 17, 2022
2532b67
Switched heredoc test samples for quoted strings
jaxwilko Jan 17, 2022
1db7bfc
Removed incorrect newline at end of expected results
jaxwilko Jan 20, 2022
36a4044
Reverted to heredoc and removed carriage returns from expected samples
jaxwilko Jan 20, 2022
45e3058
Removed usage of PHP_EOL in favour of lf
jaxwilko Jan 20, 2022
29efd28
Added class to represent const expressions
jaxwilko Jan 27, 2022
87d2d9c
Fixed incorrect comment
jaxwilko Jan 27, 2022
1406191
Added tests for setting arrays and const values
jaxwilko Jan 27, 2022
0caba9d
Fixed incorrect method description comment
jaxwilko Jan 27, 2022
1ca70f3
Added support for setting an array and const value
jaxwilko Jan 27, 2022
4314dfe
Simplified key insertion logic
jaxwilko Jan 27, 2022
f60a0ff
Added test for numeric array keys
jaxwilko Jan 27, 2022
29067a8
Fixed spelling mistake
jaxwilko Jan 27, 2022
c2a0aa2
Swapped out redundent if statement for assigning result of expression
jaxwilko Jan 27, 2022
5c2d2b0
Merge branch 'develop' into wip/1.2
LukeTowers Feb 13, 2022
a20afa9
Update dependencies
LukeTowers Feb 13, 2022
4be3930
Improve support PHP 8.1 & align return types with Laravel base classes
LukeTowers Feb 13, 2022
d4b9776
Match Laravel 9 langPath() interface
LukeTowers Feb 13, 2022
31becc3
Compatibility with Laravel 9 Cache Repository changes
LukeTowers Feb 13, 2022
60443f3
Update src/Foundation/Application.php
LukeTowers Feb 13, 2022
c9866c0
Remove unnecessary Str facade
LukeTowers Feb 14, 2022
bbd8c25
Switch back to stable version of Tinker
LukeTowers Feb 14, 2022
843a8fd
Ensure any return code from the parent laravel command is returned
LukeTowers Feb 14, 2022
74e702d
Update testing dependencies to match Laravel 9
LukeTowers Feb 14, 2022
8b6c130
Add autocompletion support to the create:command stub
LukeTowers Feb 15, 2022
0e29144
Remove Laravel migration commands
LukeTowers Feb 15, 2022
4d41e8a
Don't load module route files when routes are cached
LukeTowers Feb 15, 2022
6ba1f0a
Add commands to review for inclusion in Winter
LukeTowers Feb 15, 2022
290303c
Fix support for route:list & route:cache commands
LukeTowers Feb 16, 2022
33d50fd
Bump Twig to v3.0
LukeTowers Feb 16, 2022
4f19150
Merge 1.2 into config-writer-replacement
LukeTowers Feb 16, 2022
2d64825
Move config writer into Parse
LukeTowers Feb 16, 2022
7c9c63b
Move ArrayFile tests out of config and into parse
LukeTowers Feb 16, 2022
6f6d073
Various cleanup and code review
LukeTowers Feb 16, 2022
4f43d6c
Fix test name mismatch
LukeTowers Feb 16, 2022
f4da8f6
PHPConst -> PHPConstant
LukeTowers Feb 16, 2022
9ea747c
FileInterface -> DataFileInterface, read() -> open()
LukeTowers Feb 16, 2022
5643d4d
Require PHP Codesniffer > 3.2
LukeTowers Feb 16, 2022
5cfe40d
Switch back to Laravel's default logic for setting application keys
LukeTowers Feb 16, 2022
57eafe4
const() -> constant()
LukeTowers Feb 16, 2022
9c0057c
Improvements to the EnvFile parser
LukeTowers Feb 17, 2022
5b186ac
Use Str facade instead of helper functions
LukeTowers Feb 17, 2022
a9fa826
Cleanup docblocks
LukeTowers Feb 17, 2022
74ca4d8
Fix tests, add test case for $throwIfMissing
LukeTowers Feb 17, 2022
f12c2b9
Refactor ConfigWriter to use ArrayFile parser internally
LukeTowers Feb 18, 2022
ab8a684
Fix Mail::pretend() usage
LukeTowers Feb 18, 2022
e18be0f
Switch to Symfony\Yaml v6
LukeTowers Feb 19, 2022
ad00417
Temporary workaround for version.yaml parsing
LukeTowers Feb 19, 2022
ff1f288
cannot use facades with tests
mjauvin Feb 20, 2022
6eb9f61
Replace embedded Assetic v1 with Assetic v3
LukeTowers Feb 22, 2022
530c80b
Merge branch 'wip/1.2' of github.com:wintercms/storm into wip/1.2
LukeTowers Feb 22, 2022
4c28587
Fix Assetic -> October\Rain aliasing
LukeTowers Feb 23, 2022
b16bb17
Allow anonymous migration classes
bennothommo Feb 23, 2022
189a3f3
Define return var for singleton instance.
bennothommo Feb 23, 2022
7bd960e
Fix YAML processor tests
LukeTowers Feb 23, 2022
c4cd440
Remove scaffold commands from Storm (#70)
bennothommo Feb 23, 2022
06195b7
Update comments
LukeTowers Feb 23, 2022
56e2582
Fix closure listener with parameters as reference (#69)
mjauvin Feb 23, 2022
af4cf91
cleanup docblock
LukeTowers Feb 23, 2022
6f90d90
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 23, 2022
33328e4
Update Composer deps, small tweaks
bennothommo Feb 23, 2022
0a71452
Add class comment
bennothommo Feb 24, 2022
b1fd554
Fix Stan issues in Translator
bennothommo Feb 24, 2022
ce3ead9
Add Command base class
LukeTowers Feb 24, 2022
d174113
Fix Validation and Support PHPStan issues
bennothommo Feb 24, 2022
4cf0199
Fix Router PHPStan issues
bennothommo Feb 24, 2022
6521824
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 24, 2022
c9fa632
Provide example CLI argument value suggestion method implementation
LukeTowers Feb 24, 2022
3fe31df
Add Event facade methods
bennothommo Feb 24, 2022
ff29e6a
Fix Parse PHPStan issues
bennothommo Feb 24, 2022
6ea0cf9
Fix Network PHPStan issues
bennothommo Feb 24, 2022
ee06185
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 24, 2022
0899bb8
Fix return type of fired events
bennothommo Feb 24, 2022
86e8aa9
Fix minor issue in MailManager
bennothommo Feb 24, 2022
f87d594
WIP Mailer fixes
bennothommo Feb 24, 2022
2ef3234
Fix HTML PHPStand issues
bennothommo Feb 24, 2022
b679f20
Fix unit tests - Mail ones are not passing now, but pass on main branch
bennothommo Feb 24, 2022
5bce5c7
Code quality
LukeTowers Feb 24, 2022
a41c42c
Add support for wordwrapping the console alert() output helper
LukeTowers Feb 25, 2022
3b7d4f2
Implement changes from Luke's review
bennothommo Feb 25, 2022
2370eaa
Finalise Mail PHPStan fixes
bennothommo Feb 25, 2022
a9afb97
Add ConfirmsWithInput CLI trait
LukeTowers Feb 25, 2022
1b5f217
Include Winter CMS in the app version
LukeTowers Feb 25, 2022
da38bf8
Remove dependency on App facade
LukeTowers Feb 25, 2022
ba6617a
Merge remote-tracking branch 'origin/wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 25, 2022
4f1db25
Fix Command PHPStan issues
bennothommo Feb 25, 2022
49fad3c
Add # as a filesystem path symbol to refer to themes_path()
LukeTowers Feb 25, 2022
6cb008f
Docblocks cleanup
LukeTowers Feb 25, 2022
0fd415d
Merge remote-tracking branch 'origin/wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 25, 2022
ab137a1
Tweak extendable trait
bennothommo Feb 25, 2022
7918a13
WIP fixes of Database PHPStan issues
bennothommo Feb 25, 2022
35b36b7
Defensive coding tweak
bennothommo Feb 26, 2022
97c5da2
Improve Halcyon SectionParser logic
LukeTowers Feb 27, 2022
a4de4ea
Code quality and windows test fix
LukeTowers Feb 27, 2022
f72f45a
Merge branch 'develop' into wip/1.2
LukeTowers Feb 27, 2022
c94397f
Remove the Seed & StorageLink Laravel commands
LukeTowers Feb 27, 2022
5681961
Merge remote-tracking branch 'origin/wip/1.2' into wip/1.2-code-analysis
bennothommo Feb 28, 2022
6fb9ca9
Adjust Command logic path for input type parsing
bennothommo Feb 28, 2022
bfcc68f
Fix some issues picked up by PHPStan when global scan is used
bennothommo Feb 28, 2022
27031ee
Fixes to the Mailer
LukeTowers Mar 1, 2022
4a036ea
Added config test fixtures
jaxwilko Mar 1, 2022
ec04043
Added support for leading imports & expressions before a return stmt
jaxwilko Mar 1, 2022
f74bd5a
Manual merge wip/1.2 into wip/config-writer-replacement
jaxwilko Mar 1, 2022
0ec5553
Moved fixtures into arrayfile dir
jaxwilko Mar 2, 2022
440e1fb
Added include test to ensure parens on correct include stmts
jaxwilko Mar 2, 2022
c098853
Added code to check include position in ast and append parens correctly
jaxwilko Mar 2, 2022
892ed2a
Simplified code by always apending parens on include/require stmts
jaxwilko Mar 2, 2022
e52a609
Drop polyfills
bennothommo Mar 3, 2022
36e29a4
remove polyfills require statement
LukeTowers Mar 3, 2022
cf98dcf
Merge branch 'wip/1.2' into wip/config-writer-replacement
LukeTowers Mar 4, 2022
9fda6cd
Trim useless whitespace
LukeTowers Mar 4, 2022
91f1dac
Added fixes for whitespace issues
jaxwilko Mar 4, 2022
1fe835b
Allow array of email addresses without names (#75)
mjauvin Mar 8, 2022
0af5c16
Typehint the app property for moduleserviceproviders
LukeTowers Mar 8, 2022
b977610
Improve DX for dynamically adding relationships
LukeTowers Mar 9, 2022
c76f1fa
Wait for the dispatcher to be set before booting model events
LukeTowers Mar 14, 2022
78bcf11
Bound lexer to ArrayFile instance
jaxwilko Mar 15, 2022
573e606
Added support for lexer token parsing and additional comment handling
jaxwilko Mar 15, 2022
6ee5ec3
Added non-attribute comment handling test
jaxwilko Mar 15, 2022
725fb4d
Added style fixes
jaxwilko Mar 15, 2022
6e0ddb3
More styling fixes in test fixture
jaxwilko Mar 15, 2022
7e56951
Added fix to ConfigWriter to support passing lexer to ArrayFile instance
jaxwilko Mar 15, 2022
62950e0
Added \r trim to comment test
jaxwilko Mar 15, 2022
5ca79e7
Update src/Foundation/Console/KeyGenerateCommand.php
bennothommo Mar 16, 2022
d14374d
KeyGenerateCommand cleanup
LukeTowers Mar 16, 2022
b0e7b4f
Code dusting and explicit typing from review
bennothommo Mar 16, 2022
e6c8434
Added subitem comment test
jaxwilko Mar 16, 2022
4899679
Added fix for subitems being picked up in lexer tokens
jaxwilko Mar 16, 2022
e15806d
Merge branch 'wip/config-writer-replacement' of github.com:wintercms/…
jaxwilko Mar 16, 2022
c7a5f6a
Added fix for token parsing running into comma tokens and breaking
jaxwilko Mar 16, 2022
96e496a
Merge pull request #40 from wintercms/wip/config-writer-replacement
LukeTowers Mar 16, 2022
7633fd9
Style fix
LukeTowers Mar 16, 2022
cd4b82d
Check for a space / end before surrounding keys with quotes
bennothommo Mar 28, 2022
2ca5797
Revert "Check for a space / end before surrounding keys with quotes"
LukeTowers Mar 28, 2022
9256b87
Only apply YAML preprocessing if the initial parse attempt fails
LukeTowers Mar 28, 2022
aeb5268
Fix tests
LukeTowers Apr 1, 2022
c1fb3c1
Align GeneratorCommand with Laravel (#76)
LukeTowers Apr 3, 2022
0bb0989
Fix scaffolding path overwriting logic
LukeTowers Apr 3, 2022
8e96bcb
Fire mailer.beforeRegister event in mailer() method (#79)
mjauvin Apr 5, 2022
9891101
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Apr 14, 2022
5701bc0
remove non-existent argument to Ini::parse() method (#82)
mjauvin Apr 26, 2022
b4b67bb
Merge branch 'develop' into wip/1.2
bennothommo Apr 26, 2022
e042c0c
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Apr 29, 2022
15ed858
Fix tests
bennothommo Apr 29, 2022
f9cc4fe
Synchronise docblocks
bennothommo May 3, 2022
3786591
Drop unnecessary overwrite in hasOne relation.
bennothommo May 3, 2022
f79eac4
Simplify "key:generate" command overwrite
bennothommo May 3, 2022
3697094
Tweak checks for URL generator values
bennothommo May 3, 2022
e3f2bac
Refactor database relations.
bennothommo May 3, 2022
cf251aa
Make Argon extend Illuminate's Carbon wrapper
bennothommo May 3, 2022
6805eb1
Numerous fixes to docblocks and signatures
bennothommo May 3, 2022
298fea5
Exclude some errors that are not helping
bennothommo May 3, 2022
206edcd
Final pass of code analysis tweaks
bennothommo May 5, 2022
82a7996
Fix sortable constant reference and test
bennothommo May 5, 2022
03e95b6
Convert private methods to protected in Section Parser
bennothommo May 5, 2022
51cec2f
Change return type in Argon
bennothommo May 11, 2022
44f6f38
Synchronise Pivot model with Laravel 9
bennothommo May 13, 2022
6a9022e
Add MorphPivot support
bennothommo May 13, 2022
650eab5
Update src/Database/Attach/File.php
bennothommo May 14, 2022
1ba308a
Update src/Console/Command.php
bennothommo May 22, 2022
5645a5b
Update src/Database/MorphPivot.php
bennothommo May 22, 2022
a200219
Add type hints to all File attachment methods
bennothommo May 22, 2022
02b5b98
Add type hints
bennothommo May 22, 2022
a780758
Make the Pivot use the AsPivot trait, add parent accessor
bennothommo May 22, 2022
e8f880f
Update src/Database/Behaviors/Purgeable.php
bennothommo May 22, 2022
bebff18
Update src/Database/Behaviors/Sortable.php
bennothommo May 22, 2022
6356bd2
Update src/Filesystem/Filesystem.php
LukeTowers May 22, 2022
0f7e0ff
Fix support for Pivot models in 1.2
LukeTowers May 22, 2022
c9a83dc
Added ProcessesQuery console helper trait to make processing large nu…
LukeTowers May 23, 2022
6d95046
Ported laravel cache provider without implementing deferable (#84)
LukeTowers May 31, 2022
dff4e6e
Removed deferable from redis provider (#85)
jaxwilko Jun 3, 2022
221dcb2
Add Array Source trait (#87)
bennothommo Jun 7, 2022
91993e2
Tweaks to array source trait
bennothommo Jun 7, 2022
9e2eca0
Added support for setting app tempPath via config (#89)
jaxwilko Jun 20, 2022
1643791
Restores the "addVisible" / "addHidden" methods removed in Laravel 7
bennothommo Jun 24, 2022
a0feccb
Load deferred providers before provider registration (#86)
bennothommo Jun 25, 2022
e173e94
Bump minimum Laravel version to 9.1
LukeTowers Jun 25, 2022
dfd1308
Merge branch 'develop' into wip/1.2
LukeTowers Jun 25, 2022
faf29f9
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Jun 26, 2022
361e17e
Remove relation traits that have been moved to concerns
bennothommo Jun 26, 2022
d07a9e6
Update all facade use cases to use full facade class
bennothommo Jun 26, 2022
6d55a77
Add options docs for Zip class, fix BC break
bennothommo Jun 26, 2022
1ef7cfc
Re-add default value
bennothommo Jun 26, 2022
1154159
Remove overwritten definition for resolver
bennothommo Jun 26, 2022
82c880b
Merge branch 'develop' into wip/1.2
LukeTowers Jun 26, 2022
2b78ff3
Update test case for choice / transChoice
bennothommo Jun 27, 2022
efac3cd
Bring Translator closer to base Laravel functionality.
bennothommo Jun 27, 2022
cc1a4d3
Don't try to double-check lang files unnecessarily
bennothommo Jun 28, 2022
37916e0
Load JSON files before setting translation value in namespace
bennothommo Jun 28, 2022
feeda9c
Add Laravel test cases to ensure base functionality works
bennothommo Jun 28, 2022
a266bdd
Remove "translator.beforeResolve" event for performance reasons
bennothommo Jun 28, 2022
855fdc8
Remove test for "translator.beforeResolve" event
bennothommo Jun 28, 2022
eeb3f0e
Add ability to change an entire group through "set" method
bennothommo Jun 28, 2022
0c60dc2
Ensure group override is not applied when locale is changed back
bennothommo Jun 28, 2022
ec89559
Merge pull request #91 from wintercms/wip/1.2-translation-improvements
LukeTowers Jun 28, 2022
1124812
Merge branch 'wip/1.2' into wip/1.2-code-analysis
bennothommo Jun 29, 2022
05698c8
Fix moved class names in aliases
bennothommo Jun 29, 2022
15b359b
Add MorphPivot test cases
bennothommo Jun 29, 2022
e374dce
Fix constructor for MorphToPivot
bennothommo Jun 29, 2022
c168945
Revert hour value change
bennothommo Jun 29, 2022
a8da8cd
Correct docblock return
bennothommo Jun 29, 2022
08b75fc
Match PHPCS config from main repo
bennothommo Jun 30, 2022
0ec2ac5
Use lang path in Translator registration
bennothommo Jun 30, 2022
892b890
Fix possible BC break, cleanup for PHPStan
bennothommo Jun 30, 2022
4301383
Code tidying
bennothommo Jun 30, 2022
cbec8d9
Try out @phpstan-property definitions to fix remaining issues
bennothommo Jun 30, 2022
a02f94e
Docs and commenting changes to fix a whole slew of issues
bennothommo Jul 1, 2022
79761b5
Generate baseline
bennothommo Jul 1, 2022
8ac383f
Allow pivot model to be provided to MorphTo relations
bennothommo Jul 1, 2022
af29492
Fix test, allow namespaced files in tests folder
bennothommo Jul 1, 2022
ee73adf
Move tests namespace into autoload-dev
bennothommo Jul 1, 2022
76835e6
Add automated PHPStan test, tweak PHPUnit test
bennothommo Jul 1, 2022
9f57231
Replace missing matrix vars
bennothommo Jul 1, 2022
6273bc6
Fix Markdown parser class name storage and use
bennothommo Jul 1, 2022
c096e92
Remove use of Eloquent facade in down migrations
bennothommo Jul 1, 2022
696d4a7
Convert all type hints to PHPDocs to maintain BC
bennothommo Jul 1, 2022
45765b5
Small tweak
bennothommo Jul 1, 2022
67a3b64
Ensure morph to supports deferred records and constraints
bennothommo Jul 1, 2022
8951f40
Remove fixed errors from baseline
bennothommo Jul 1, 2022
3558833
Allow CSRF token and session key to be null
bennothommo Jul 1, 2022
ba709ce
Fix return type
bennothommo Jul 1, 2022
cb93b80
Ignore lines in PHPStan - it can't seem to work out the relations here
bennothommo Jul 1, 2022
7a85594
Update src/Database/Relations/Concerns/DeferOneOrMany.php
bennothommo Jul 1, 2022
784ab77
Update src/Database/Relations/Concerns/DeferOneOrMany.php
bennothommo Jul 1, 2022
fe190c6
Remove return type missed in last pass
bennothommo Jul 2, 2022
422e58e
Change to Str call
bennothommo Jul 2, 2022
821c7eb
Merge pull request #64 from wintercms/wip/1.2-code-analysis
bennothommo Jul 4, 2022
1b866f0
Added a __toString to resolve Twig issue (#93)
jaxwilko Jul 5, 2022
97588cb
Restore Laravel 6 behavior to public visibility for local driver (#92)
mjauvin Jul 8, 2022
262476f
Only apply default visibility of public to the default local disk
LukeTowers Jul 8, 2022
a0d0638
Improve support for PHP 8.1 (#81)
teranode Jul 9, 2022
f3b0aa9
add unit test with doubly encoded url in URL path
mjauvin Jul 10, 2022
7aaa501
Revert "add unit test with doubly encoded url in URL path"
mjauvin Jul 10, 2022
752db73
Use path resolver to determine base directory for array data cache
bennothommo Jul 11, 2022
df8bbd7
Fix for placeholder default block (#96)
mjauvin Jul 12, 2022
677205a
Update src/Auth/Manager.php
LukeTowers Jul 12, 2022
b408e04
Update src/Halcyon/Datasource/ResolverInterface.php
LukeTowers Jul 13, 2022
b4acbed
Code review
LukeTowers Jul 13, 2022
768c2c4
Only decode query arguments before parsing the URL (#95)
mjauvin Jul 13, 2022
d36fa07
Merge branch 'develop' into wip/1.2
LukeTowers Jul 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 63 additions & 0 deletions .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Tests

on:
push:
branches:
- "wip/1.2"
pull_request:
branches:
- "wip/1.2"

jobs:
codeAnalysis:
runs-on: ubuntu-latest
name: Code Analysis
env:
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
key: winter-storm-cache-v1.2
steps:
- name: Cancel previous incomplete runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}

- name: Checkout changes
uses: actions/checkout@v2

- name: Setup extension cache
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: '8.0'
extensions: ${{ env.extensions }}
key: ${{ env.key }}

- name: Cache extensions
uses: actions/cache@v2
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: ${{ env.extensions }}

- name: Setup dependency cache
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-interaction --no-progress --no-scripts

- name: Analyse code
run: ./vendor/bin/phpstan analyse
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ jobs:
max-parallel: 6
matrix:
operatingSystem: [ubuntu-latest, windows-latest]
phpVersion: ['7.2', '7.3', '7.4', '8.0']
phpVersion: ['8.0', '8.1']
fail-fast: false
runs-on: ${{ matrix.operatingSystem }}
name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }}
env:
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
key: winter-storm-cache-v1.1.2
key: winter-storm-cache-v1.2
steps:
- name: Cancel previous incomplete runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}

- name: Checkout changes
uses: actions/checkout@v2

Expand All @@ -44,7 +49,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersion }}
tools: composer:v2
extensions: ${{ env.extensions }}

- name: Setup dependency cache
Expand All @@ -62,7 +66,7 @@ jobs:
run: composer install --no-interaction --no-progress --no-scripts

- name: Setup problem matchers for PHPUnit
if: matrix.phpVersion == '7.4'
if: matrix.phpVersion == '8.1'
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run tests
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ composer.lock
# Other files
.DS_Store
php_errors.log

#eclipse
/.buildpath
/.project
/.settings/

#phpunit
tests/.phpunit.result.cache
.phpunit.result.cache
tests/tmp
36 changes: 22 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"php": ">=7.2.9",
"php": "^8.0.2",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
Expand All @@ -32,27 +32,32 @@
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-PDO": "*",
"ext-pdo": "*",
"ext-zip": "*",

"assetic/framework": "~3.0",
"doctrine/dbal": "^2.6",
"erusev/parsedown-extra": "~0.7",
"linkorb/jsmin-php": "~1.0",
"wikimedia/less.php": "~3.0",
"scssphp/scssphp": "~1.0",
"symfony/yaml": "^3.4",
"twig/twig": "~2.0",
"laravel/framework": "^9.1",
"laravel/tinker": "^2.7",
"league/csv": "~9.1",
"nesbot/carbon": "^2.0",
"laravel/framework": "~6.0",
"laravel/tinker": "~2.0"
"nikic/php-parser": "^4.10",
"scssphp/scssphp": "~1.0",
"symfony/yaml": "^6.0",
"twig/twig": "~3.0",
"wikimedia/less.php": "~3.0",
"wikimedia/minify": "~2.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5.12|^9.3.3",
"mockery/mockery": "~1.3.3|^1.4.2",
"squizlabs/php_codesniffer": "3.*",
"phpunit/phpunit": "^9.5.8",
"mockery/mockery": "^1.4.4",
"squizlabs/php_codesniffer": "^3.2",
"php-parallel-lint/php-parallel-lint": "^1.0",
"meyfa/phpunit-assert-gd": "^2.0.0|^3.0.0",
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1"
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.1.0"
},
"suggest": {
"ext-pdo_dblib": "Required to use MS SQL Server databases",
Expand All @@ -79,7 +84,10 @@
"classmap": [
"tests/TestCase.php",
"tests/DbTestCase.php"
]
],
"psr-4": {
"Winter\\Storm\\Tests\\": "tests/"
}
},
"scripts": {
"test": [
Expand Down
10 changes: 7 additions & 3 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" />

<!-- We're not enforcing a line length limit -->
<exclude name="Generic.Files.LineLength" />
</rule>

<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<!--
Migrations and tests do not need a namespace defined
-->
<!-- Migrations and tests do not need a namespace defined -->
<exclude-pattern>*/src/Auth/Migrations/*\.php</exclude-pattern>
<exclude-pattern>*/src/Database/Migrations/*\.php</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
Expand All @@ -28,6 +29,9 @@
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>

<arg name="extensions" value="php" />
<arg name="colors" />

<file>src/</file>
<file>tests/</file>

Expand Down
Loading