Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
54064b3
Merge pull request #511 from spawnia/scalar-coercion
vladar Jul 1, 2019
d037ab7
Merge branch 'master' into root-value-consistent-naming
spawnia Jul 1, 2019
3b33167
Rename $rootValue where applicable
spawnia Jul 1, 2019
8c4e7b1
Fix up some overly eager renamings in the docs
spawnia Jul 1, 2019
ed97245
Merge branch 'master' into partial-parsing
spawnia Jul 1, 2019
559c46c
Merge branch 'master' into phpstan-level-up
spawnia Jul 1, 2019
22a0da9
Merge pull request #505 from spawnia/root-value-consistent-naming
vladar Jul 3, 2019
a502c33
Upgrade PHPStan to 0.11.12
simPod Jul 10, 2019
974258b
Merge pull request #503 from simPod/fix-reference-executor
vladar Jul 12, 2019
005b1a3
Merge pull request #502 from simPod/drop-deprecated-schema
vladar Jul 12, 2019
4401f4d
Merge pull request #504 from simPod/fielddef-types
vladar Jul 12, 2019
a01b089
Merge pull request #517 from simPod/upgrade-phpstan
vladar Jul 12, 2019
1ac5af1
Fix internal directives
simPod Jul 12, 2019
5f19bd3
use constant for directive name
sukano Jul 12, 2019
b72ba3c
Merge pull request #518 from simPod/fix-internal-directives
vladar Jul 13, 2019
28477cf
Merge branch 'master' into phpstan-level-up
spawnia Jul 14, 2019
01e2aa3
Fix codestyle
spawnia Jul 14, 2019
52a3be0
Reduce overall amount of errors and ignore some that are hard to get …
spawnia Jul 16, 2019
9ac999e
Fix tests
spawnia Jul 16, 2019
cdb5bf8
Fix one more static analysis issue
spawnia Jul 16, 2019
f2eb60a
Fix codestyle
spawnia Jul 16, 2019
d79c764
Merge branch 'master' into partial-parsing
spawnia Jul 17, 2019
bd14254
Add FieldDefinition to ResolveInfo
spawnia Jul 17, 2019
7f97ee4
Simplify and reorder constructor
spawnia Jul 24, 2019
9540091
Revert renamings
spawnia Jul 24, 2019
24c473e
Merge pull request #501 from spawnia/partial-parsing
vladar Aug 2, 2019
e804ccf
Merge pull request #509 from spawnia/phpstan-level-up
vladar Aug 2, 2019
90c5237
Let's a bit wait more for coverage in Scrutinizer
simPod Aug 2, 2019
a023b02
Remove invalid typehint
simPod Aug 2, 2019
c9c830b
Merge pull request #525 from simPod/wait-for-coverage
vladar Aug 2, 2019
8d8462a
Merge pull request #526 from simPod/fix-build
vladar Aug 2, 2019
f27eb35
Created FUNDING.yml
vladar Aug 2, 2019
76c229b
Minor codestyle fix
vladar Aug 2, 2019
e01b6e0
Scalar type ResolverInfo::getFieldSelection support (#529)
stevelacey Aug 6, 2019
259daaa
Update ResolveInfoTest.php
simPod Aug 6, 2019
39bfaa4
Merge pull request #530 from simPod/patch-1
vladar Aug 7, 2019
fb52ab0
Added ability to retrieve the query complexity once the query has bee…
g4ther Aug 8, 2019
9e787e4
Merge pull request #531 from g4ther/master
vladar Aug 9, 2019
07c9ad6
Allow \stdClass for input types
adam1658 Aug 13, 2019
008e466
Add PR number to changelog
adam1658 Aug 13, 2019
1773943
Merge pull request #535 from adam1658/stdClass-inputs
vladar Aug 14, 2019
953178f
Additional test for single-value to list coercion (in variables)
vladar Aug 14, 2019
bf4e7d4
SPEC/BUG: Ambiguity with null variable values and default values (fix…
vladar Aug 14, 2019
84e5aaf
add resolver
Chrisdowson Aug 17, 2019
8ef4ab3
Execute: simplify + speedup
vladar Aug 24, 2019
0a748bb
Executor: Unify contextValue
vladar Aug 24, 2019
cca8fd6
Schema Validation: additional validation of extended schemas
vladar Aug 24, 2019
89a7a7e
Don't call global fieldResolver on introspection fields (#481)
vladar Aug 24, 2019
acdbd50
Expose getOperationType(operation) on Schema
vladar Aug 24, 2019
5fa2dff
Code style fix
vladar Aug 24, 2019
c705280
Visitor: more tests
vladar Aug 24, 2019
a27dd31
Merge pull request #536 from Chrisdowson/master
vladar Aug 26, 2019
71f4d17
Scalars: reject array serialization/coercion
vladar Aug 29, 2019
9feb582
Reject Infinity or NaN supplied as Int or Float value
vladar Aug 29, 2019
fef556a
Add test for enum custom values as input args
vladar Aug 29, 2019
175ace7
Spec compliance: do not require interfaces to have at least one imple…
vladar Aug 29, 2019
1933a99
Refactor NoFragmentCycles rule
vladar Aug 29, 2019
ef8e3b3
BREAKING: Removed deprecated directive introspection fields (onOperat…
vladar Aug 29, 2019
975c9fe
BREAKING/BUGFIX: Strict coercion of scalar types (#278)
vladar Aug 29, 2019
40d80d9
Fixed test reference
vladar Aug 29, 2019
c5d913f
Updated comments about contextValue argument
vladar Aug 29, 2019
44fb03a
Validate schema use new extension ast nodes
vladar Aug 29, 2019
a4f39bb
Validate schema: added several missing tests
vladar Aug 29, 2019
8df14ea
Prevent infinite recursion on invalid unions
vladar Sep 7, 2019
c975934
Schema Validation: Added validations for directive location and dupli…
vladar Sep 7, 2019
b8e0896
Test absence of name clash between type names and directives
vladar Sep 7, 2019
843dcab
Breaking: Validation Rework
vladar Sep 7, 2019
75cb973
Allow directives on variable definitions
vladar Sep 7, 2019
7f8e9fe
Reuse 'many' for parsing document
vladar Sep 7, 2019
12ee90d
Refactored tests for variable definition directives
vladar Sep 7, 2019
ad3c07d
Merge branch 'master' into typed-arguments
spawnia Sep 11, 2019
785961e
Ensure fieldDefinition is set
spawnia Sep 11, 2019
2f0c8f4
Move test
spawnia Sep 11, 2019
6554423
Merge pull request #522 from spawnia/typed-arguments
vladar Sep 12, 2019
16365d0
fix coding standard violation
Sep 12, 2019
1e4e593
add return type
sukano Sep 15, 2019
cd31b00
Merge pull request #498 from sukano/fix-directives-complexity-validator
vladar Sep 16, 2019
e0dc6c6
Remove dead code
enumag Oct 3, 2019
fba3ee9
Merge pull request #550 from enumag/patch-5
vladar Oct 7, 2019
96db5d2
Add message level when using custom warning handler
Oct 10, 2019
c11f95e
Merge pull request #553 from mcg-web/add_message_level
vladar Oct 13, 2019
9864820
Grouping implementor fields for abstract types in QueryPlan (#513)
yura3d Oct 13, 2019
835c8a5
Modifies the chr() check to properly handle \u0000 codes in the range…
jakevoytko Oct 15, 2019
de93375
Modifies the lexer to parse UTF-16 surrogate pairs in string literals…
jakevoytko Oct 17, 2019
8c9c10f
Fixed broken build
vladar Oct 17, 2019
24e82c5
Lock PHPStan version
simPod Oct 18, 2019
be61cda
Merge pull request #558 from simPod/lock-phpstan
vladar Oct 19, 2019
551d09a
Cleanup code
simPod Oct 23, 2019
7cc72be
Merge pull request #565 from simPod/cleanup
vladar Oct 29, 2019
baad32b
Phpstan Level 3 (#566)
shmax Nov 3, 2019
3d66c7c
Restored several tests that were skipped previously
vladar Nov 3, 2019
bcd97a3
Update README.md
vladar Nov 3, 2019
d447285
Remove config validation section
mfn Nov 5, 2019
2320b3c
Merge pull request #572 from mfn/patch-1
vladar Nov 6, 2019
5e4ad8e
Shorten the composer scripts commands
spawnia Nov 10, 2019
a08c001
Category should be under extensions
alanpoulain Nov 12, 2019
03546fe
Fix broken link to the Slim documentation about PSR-7
Nov 13, 2019
46a99a3
Add test for deferred chaining
vladar Nov 16, 2019
a5ceafa
Merge pull request #575 from spawnia/composer-stan
vladar Nov 16, 2019
08a07bd
Merge pull request #578 from JoshuaLuckers/fix-broken-slim-link
vladar Nov 16, 2019
59c69ac
Merge pull request #576 from alanpoulain/doc-error-handling-category-…
vladar Nov 16, 2019
9613ab5
Drop scrutinizer checks as they're handled by PHPStan and code sniffer
simPod Nov 17, 2019
ea011cf
Merge pull request #583 from simPod/reconf-scrutinizer
vladar Nov 18, 2019
8d639cc
Unify implementation of defaultValueExists
spawnia Nov 20, 2019
86c3835
Scrutinizer: Analyze only src
simPod Nov 20, 2019
c28dd21
composer fix
spawnia Nov 21, 2019
446fa95
Merge pull request #586 from simPod/src-scrutinizer
vladar Dec 5, 2019
34fe961
Merge pull request #585 from spawnia/defaultValueExists
vladar Dec 5, 2019
97e49bd
Drop unused uses
simPod Dec 9, 2019
0f4434d
Merge pull request #595 from simPod/unused-uses
vladar Dec 9, 2019
ba4a7cd
Remove useless parenthesis
enumag Dec 10, 2019
ffa8860
Merge pull request #597 from enumag/patch-7
vladar Dec 12, 2019
8c8abac
Upgrade to phpstan 0.12 (#592)
spawnia Dec 12, 2019
8d37049
Add support GitHub actions (#584)
Smolevich Nov 18, 2019
11abce7
Fix FormattedError
simPod Dec 27, 2018
eed04dd
DebugFlag
simPod Dec 29, 2018
20d293c
revisit
simPod Dec 30, 2019
e7bef7c
Add test to verify that array values for enums work as expected
vladar Dec 30, 2019
3228c54
Use Coveralls, drop Scrutinizer (#603)
simPod Jan 5, 2020
6fd55fc
Upgrade php github action (#604)
simPod Jan 5, 2020
3cccd47
Fix vendor in Coveralls badge links
simPod Jan 5, 2020
798b347
Fix branch coverage reporting
simPod Jan 5, 2020
b664dd1
Merge pull request #605 from simPod/coveralls-branch
vladar Jan 16, 2020
949e6f2
Lock commit for php-coveralls
simPod Jan 16, 2020
611f5b0
Temporarily use php-coveralls mirror to bypass Github limits
simPod Jan 16, 2020
599b03b
Merge pull request #611 from simPod/use-php-coveralls-mirror
vladar Jan 16, 2020
cf0912d
Speedup coverage
simPod Jan 6, 2020
ce834e2
Fixed assumption that throwables from custom scalar are always client…
Jan 21, 2020
5f838d0
Merge pull request #606 from simPod/pcov
vladar Feb 26, 2020
5314bf6
PHPStan extension installer, baseline, fixes (#602)
simPod Feb 26, 2020
21c5996
Implement BuildClientSchema (#539)
spawnia Feb 26, 2020
c6da1e2
Added Altair GraphQL Client (#610)
imolorhe Feb 26, 2020
458640b
Fix CS (#624)
simPod Feb 26, 2020
3227717
Fix PHPStan
simPod Feb 26, 2020
318018a
Add AmpPromiseAdapter (#551)
enumag Feb 28, 2020
782e663
Simplify deferred/promise implementation (#581)
vladar Feb 28, 2020
0b88b7d
Wrap field path in quotes (#587)
simPod Feb 28, 2020
3a276cb
Fix ServerConfig and SchemaConfig (#591)
enumag Feb 28, 2020
b3fac12
Change type hints in Utils.php to iterable pseudo-type (#613)
spawnia Feb 28, 2020
21a78cc
Make sure resolveField function is preserved in SchemaExtender (#626)
SevInf Feb 28, 2020
6fd38bf
Fix lint error
vladar Feb 28, 2020
a472409
Fix broken tests
vladar Feb 28, 2020
acf3263
More test fixes
vladar Feb 28, 2020
e1d3e35
Fix another lint error
vladar Feb 28, 2020
6ed8c9b
Fix PHPStan
simPod Feb 28, 2020
486f90c
Upgrade PHPStan patch version
simPod Feb 28, 2020
5a9d2da
Drop Travis (#627)
simPod Feb 28, 2020
91eda44
Working at any nesting level, impoved tests
yura3d Mar 12, 2020
ab5b950
print @deprecated directive when deprecationReason is empty string (#…
Oliboy50 Apr 10, 2020
ba8309d
Update complementary-tools.md (#639)
leocavalcante Apr 10, 2020
af5c04b
Fix typo in example (#635)
Nicolapps Apr 10, 2020
edf1ff7
Add .phpunit.result.cache to .gitignore
spawnia Apr 13, 2020
a2780a0
Lock CodeSniffer to 3.5.4
shmax Apr 24, 2020
7412bf6
Fix return type (#650)
shmax Apr 25, 2020
2f72dd6
fix return type (#652)
shmax Apr 26, 2020
3c37c51
Make type hint for OperationDefinitionNode#name nullable (#653)
spawnia Apr 27, 2020
2b9f2ec
Make type hint for InputValueDefinitionNode#defaultValue nullable (#654)
spawnia Apr 27, 2020
e1bce32
Fix native return typehint errors (#647)
shmax Apr 28, 2020
1f0ec24
Fix native return type hints part II (#656)
shmax Apr 29, 2020
7a7add0
Fix short ternary stan errors (#645)
shmax May 19, 2020
10e62cf
Implement PSR-7 RequestInterface support
simPod Dec 13, 2019
3887d8f
Bump php action in order to use composer v1
simPod Jun 4, 2020
ed8fb62
Merge pull request #598 from simPod/fix-psr-impl
vladar Jun 8, 2020
91b55bb
Support repeatable directives (#643)
spawnia Jun 8, 2020
815fea3
Fix phpunit deprecation (#646)
shmax Jun 8, 2020
203f817
Show GitHub CI badge instead of Travis
vladar Jun 8, 2020
a747575
Drop Error::$message (#670)
simPod Jun 8, 2020
e31c89a
Deprecate experimental executor (#397)
vladar Jun 19, 2020
fdc5808
Lazy loading of types (#557)
shmax Jun 19, 2020
3fe9cbd
Merge branch 'master' of https://github.com/webonyx/graphql-php
vladar Jun 19, 2020
beca6ac
Use marker interfaces where appropriate
vladar Jun 19, 2020
8ca6592
Add `isRequired` convenience method for input fields and arguments
vladar Jun 19, 2020
6000db9
Add deprecation comment about "commentDescriptions" option
vladar Jun 19, 2020
7654ef1
Improved threshold for a list of suggestions on typos
vladar Jun 19, 2020
cab1599
Refactor: validate directive arguments inside SDL
vladar Jun 19, 2020
ba7e60f
Fix link and description of supported Markdown
vladar Jun 19, 2020
5121125
Correctly detect required/optional args/fields
vladar Jun 19, 2020
2142666
Allow to add optional args to fields implemented from interfaces
vladar Jun 19, 2020
4d7302c
Correct error message about resolve specified on input fields
vladar Jun 19, 2020
3fd08eb
Allow extending SchemaPrinter by making its methods protected (#671)
spawnia Jun 19, 2020
e058350
Rule to validate subscriptions include one field (#644)
stayallive Jun 19, 2020
3f81c15
Merge branch 'master' into queryplan-abstract-types-fix
vladar Jun 21, 2020
166a187
Merge branch 'master' into fix-formatted-error
vladar Jun 21, 2020
0fa6330
Fix Error
simPod Dec 27, 2018
e206b3a
changelog
simPod Dec 30, 2019
c04523b
Fix code style
vladar Jun 21, 2020
419eb82
Fix static analysis errors
vladar Jun 21, 2020
bf6dec5
Merge pull request #614 from adorin/client-safe-fix
vladar Jun 21, 2020
7087a4e
Fixed broken Error constructor call
vladar Jun 21, 2020
bb3178d
Add missing type hints
vladar Jun 21, 2020
e709615
Updated documentation
vladar Jun 21, 2020
45d8456
v14.0.0
vladar Jun 21, 2020
0dd030e
Do not use call_user_func or call_user_func_array (#676)
spawnia Jun 22, 2020
2dcc81e
update phpbench (#682)
shmax Jun 26, 2020
c36e581
Fix: Argument defaults with integer/float values crashes introspectio…
m4rw3r Jun 29, 2020
a73885f
Fix double Error wrapping (#688)
enumag Jun 29, 2020
ae9bd36
Fix construct empty phpstan violations (#648)
shmax Jun 30, 2020
b4142e3
Split ternary across multiple lines (#690)
spawnia Jun 30, 2020
2b2994f
fix: skip node correctly in KnownArgumentNamesOnDirectives rule (#686)
shmax Jul 2, 2020
c36914e
v14.0.1
vladar Jul 2, 2020
11743d6
Updated CHANGELOG.md
vladar Jul 2, 2020
e8735cf
Update PHPStan (#696)
spawnia Jul 7, 2020
6096b01
Optimize lazy types (#684)
shmax Jul 7, 2020
ebad45a
Merge branch 'master' of https://github.com/webonyx/graphql-php
vladar Jul 7, 2020
09469da
v14.0.2
vladar Jul 7, 2020
995a67b
NamedTypeNode::$name is generally a NameNode (#695)
spawnia Jul 9, 2020
0ccc99e
Document how to prevent invisible types (#701)
spawnia Jul 9, 2020
5a4192f
Add partial parse functions for const variants (#693)
spawnia Jul 20, 2020
6dd414a
Differentiate between client-safe and non-client-safe errors in scala…
mfn Jul 20, 2020
3f66e38
Simplify getVisitFn (#694)
shmax Jul 21, 2020
9c75f3f
Replace function calls with type casts (#692)
spawnia Jul 21, 2020
e763a2d
Fix "only booleans are allowed" errors (#659)
shmax Jul 21, 2020
114c68f
cast numbers to string (#691)
shmax Jul 21, 2020
a8e91bf
v14.1.0
vladar Jul 21, 2020
154c37c
Updated reference.md
vladar Jul 21, 2020
c1e9c5e
Switch to null-safe lazy initialization (#675)
spawnia Jul 21, 2020
f0bcc74
Handle nullable `DirectiveNode#astNode` in `SchemaValidationContext` …
spawnia Jul 21, 2020
d6fe861
v14.1.1
vladar Jul 21, 2020
5042bed
Fix public types (#702)
shmax Aug 3, 2020
10522af
Fix validation for input field definition directives (#714)
spawnia Aug 14, 2020
3743d8e
v14.2.0
vladar Aug 14, 2020
c26756d
Revert "move execution of lazy type to typeloader" (#687)
shmax Aug 23, 2020
521efa8
Read getParsedBody() instead of getBody() when Request is ServerReque…
simPod Aug 23, 2020
ae3370a
Fix default get/set behavior on InputObjectField and FieldDefinition …
shmax Aug 23, 2020
4f34309
v14.3.0
vladar Aug 23, 2020
af15467
Fix AST::fromArray conversion of initial values (match initial to exp…
zimzat Sep 16, 2020
0cb57ca
Fix the `@var` type hint for various `NodeList<Node>` usages. (#726)
zimzat Sep 16, 2020
58df707
fix $debug type in StandardServer::send500Error() (#722)
Sep 16, 2020
8ee8eec
Enhance type definitions for Executor (#720)
spawnia Sep 16, 2020
ab9faa2
cleaner expressions using isset (#731)
murtukov Nov 26, 2020
5745bf6
Specify 'subscription' as valid $operation value (#733)
Kingdutch Nov 26, 2020
8795c03
Update to shivammathur/setup-php@2.9.0 (#741)
Kingdutch Nov 27, 2020
7f2a9d1
Use static vs self in schema printer (#747)
fabis94 Dec 3, 2020
aab3d49
v14.4.0
vladar Dec 3, 2020
a7443d1
Test on PHP 8 (#745)
mfn Dec 10, 2020
5225cb3
Fix PHP 8 deprecation: Required parameters after optional parameter (…
brandonfarber Dec 10, 2020
5289a54
Remove unused imports (#752)
spawnia Dec 13, 2020
dd46e8f
Simplify type hints in wrapping types (#763)
spawnia Jan 19, 2021
5ecd260
Add comprehensive test for the default resolver (#761)
spawnia Jan 19, 2021
3b74335
Do not add errors key to result when empty (#766)
TamasSzigeti Jan 23, 2021
a6804ab
Update link to Laravel PSR7 handling to current version (#749)
mathieutu Jan 23, 2021
1e3f28f
fix query plan for wrapped types (#756)
crissi Jan 23, 2021
eb58ab1
Allow pushing nodes to NodeList via []= (#767)
spawnia Jan 23, 2021
769a474
v14.4.1
vladar Jan 23, 2021
c4d2f82
Implement support for interfaces implementing interfaces (#740)
Kingdutch Jan 23, 2021
f097de2
Reify AST node types and remove unneeded nullability (#751)
spawnia Jan 23, 2021
115a20e
v14.5.0
vladar Jan 23, 2021
a5712ca
Fix object input field shortcut as callable (#773)
Vincz Feb 5, 2021
3af8b92
v14.5.1 (#774)
spawnia Feb 5, 2021
5663ac3
Update AST.php
edlouth Apr 1, 2020
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: /tmp/coverage/*.xml
json_path: /tmp/coverage/coverage.json
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* text eol=lf
/benchmarks export-ignore
/tests export-ignore
/examples export-ignore
/tools export-ignore
.gitattributes export-ignore
.gitignore export-ignore
Expand Down
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
open_collective: webonyx-graphql-php
162 changes: 162 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
name: CI

on:
push:
branches:
tags:
pull_request:

jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4, 8.0]
env: [
'EXECUTOR= DEPENDENCIES=--prefer-lowest',
'EXECUTOR=coroutine DEPENDENCIES=--prefer-lowest',
'EXECUTOR=',
'EXECUTOR=coroutine',
]
name: PHP ${{ matrix.php }} Test ${{ matrix.env }}

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: json, mbstring
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

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

- name: Remove dependencies not used in this job for PHP 8 compatibility
run: |
composer remove --dev --no-update phpbench/phpbench
composer remove --dev --no-update phpstan/phpstan
composer remove --dev --no-update phpstan/phpstan-phpunit
composer remove --dev --no-update phpstan/phpstan-strict-rules
composer remove --dev --no-update doctrine/coding-standard

- name: Install Dependencies
run: composer update ${DEPENDENCIES}

- name: Run unit tests
run: |
export $ENV
./vendor/bin/phpunit --group default,ReactPromise
env:
ENV: ${{ matrix.env}}

coding-standard:
runs-on: ubuntu-18.04
name: Coding Standard

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: 7.1
coverage: none
extensions: json, mbstring

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

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

- name: Install Dependencies
run: composer install ${DEPENDENCIES}

- name: Coding Standard
run: composer lint

phpstan:
runs-on: ubuntu-18.04
name: PHPStan

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: 7.1
coverage: none
extensions: json, mbstring

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

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

- name: Install Dependencies
run: composer install ${DEPENDENCIES}

- name: PHPStan
run: composer stan

coverage:
runs-on: ubuntu-18.04
name: Code Coverage

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: 7.2
coverage: pcov
extensions: json, mbstring

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

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

- name: Install Dependencies
run: composer install ${DEPENDENCIES}

- name: Code coverage
run: |
./vendor/bin/phpunit --coverage-clover /tmp/coverage/clover_executor.xml
EXECUTOR=coroutine ./vendor/bin/phpunit --coverage-clover /tmp/coverage/clover_executor-coroutine.xml

- name: Report to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_RUN_LOCALLY: 1
run: vendor/bin/php-coveralls --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.phpcs-cache
.phpunit.result.cache
composer.lock
composer.phar
phpcs.xml
phpstan.neon
vendor/
/.idea
29 changes: 0 additions & 29 deletions .scrutinizer.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

Loading