Skip to content

Commit

Permalink
Refactor consumer listener contract and improve ci (#11)
Browse files Browse the repository at this point in the history
The consumer listener received as argument for the messageDecodingFailed
event the raw message. However, this may not be enough for the clients
to take action on it, so now we provide the exception object thrown
which also contains the raw message.

Improve CI pipeline by running checks with the whole range of defined
dependencies.
  • Loading branch information
xico42 authored Nov 19, 2020
1 parent a032e2f commit 2ceb09a
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 1,902 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
push:
branches: [ master ]

jobs:
Expand Down Expand Up @@ -45,3 +44,8 @@ jobs:

- name: Run checks
run: PHP=php make check

- name: Run checks in lower versions
run: |
composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction
PHP=php make check
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ vendor/
.phpcs-cache

.phpunit.result.cache

composer.lock
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan": "^0.12.49",
"phpstan/phpstan-phpunit": "^0.12.16",
"squizlabs/php_codesniffer": "3.5.*"
},
"suggest": {
Expand Down
Loading

0 comments on commit 2ceb09a

Please sign in to comment.