Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
19 changes: 14 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 7.3, 7.4 ]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate
Expand All @@ -17,8 +28,6 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit

- name: Run PHPCS tests
run: |
vendor/bin/phpcs src --standard=PSR12
vendor/bin/phpunit
8 changes: 0 additions & 8 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@ preset: psr12

enabled:
- const_separation
- const_visibility_required
- linebreak_after_opening_tag
- logical_operators
- multiline_comment_opening_closing
- no_blank_lines_after_return
- no_extra_block_blank_lines
- no_useless_else
- non_printable_character
- nullable_type_declarations
- phpdoc_add_missing_param_annotation
- phpdoc_link_to_see
- short_list_syntax
- simple_to_complex_string_variable
- strict_comparison

finder:
exclude:
- examples
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.3",
"nesbot/carbon": "^2.16",
"ext-json": "*",
"php-http/message": "^1.8",
Expand Down
Loading