Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
70c4838
update amphp/amp version
mmasiukevich Aug 15, 2020
2e3dd73
commit versions of dependencies
mmasiukevich Aug 15, 2020
1590abf
migrate to php 8
Jan 2, 2021
62f5153
setup rabbitmq
Jan 2, 2021
dd7d212
remove unused compose file
Jan 2, 2021
d3b1580
update ci file
Jan 2, 2021
0c5223d
update ci file
Jan 2, 2021
589ab60
update ci file
Jan 2, 2021
85bdf39
debug ci
Jan 2, 2021
7ea71fd
debug ci
Jan 2, 2021
a5ef68a
debug ci
Jan 2, 2021
9a46531
debug ci
Jan 2, 2021
06717da
change tests
Jan 2, 2021
50f3457
debug ci
Jan 2, 2021
a8c0103
debug ci
Jan 2, 2021
a60256f
debug ci
Jan 2, 2021
b3405fa
debug ci
Jan 2, 2021
8e985c9
debug ci
Jan 2, 2021
a0fb82b
debug ci
Jan 2, 2021
9e0d6d9
debug ci
Jan 2, 2021
a168187
debug ci
Jan 2, 2021
28c6a17
debug ci
Jan 2, 2021
68f8c5a
debug ci
Jan 2, 2021
4fc9552
debug ci
Jan 2, 2021
ca031e3
debug ci
Jan 2, 2021
b06a389
debug ci
Jan 2, 2021
6627fe6
debug ci
Jan 2, 2021
eaccf4b
debug ci
Jan 2, 2021
a2b7832
debug ci
Jan 2, 2021
d9c1812
debug ci
Jan 2, 2021
ed1b8cd
debug ci
Jan 2, 2021
d8047cf
debug ci
Jan 2, 2021
6ca25de
debug ci
Jan 2, 2021
49c9956
debug ci
Jan 2, 2021
a895388
debug ci
Jan 2, 2021
bc5b67a
debug ci
Jan 2, 2021
edc00e6
debug ci
Jan 2, 2021
0a7380a
debug ci
Jan 2, 2021
73772c8
debug ci
Jan 2, 2021
0256239
debug ci
Jan 2, 2021
66e57ce
debug ci
Jan 2, 2021
dc4b237
debug ci
Jan 2, 2021
1881011
debug ci
Jan 2, 2021
9d38ced
debug ci
Jan 2, 2021
74d411b
debug ci
Jan 2, 2021
5d5c1bb
debug ci
Jan 2, 2021
2aaf44a
debug ci
Jan 2, 2021
3f49c06
debug ci
Jan 2, 2021
c738108
debug ci
Jan 2, 2021
cc36207
debug ci
Jan 2, 2021
a8a4cf6
debug ci
Jan 2, 2021
5955eed
debug ci
Jan 2, 2021
d3b81b2
debug ci
Jan 2, 2021
1ddea08
debug ci
Jan 2, 2021
1c34c40
debug ci
Jan 2, 2021
7624bb5
debug ci
Jan 2, 2021
2da1112
debug ci
Jan 2, 2021
645c124
Merge pull request #1 from php-service-bus/migrate_php
mmasiukevich Jan 2, 2021
82995a7
Merge branch 'master' into master
mmasiukevich Jan 2, 2021
8f20b7a
wrong type casts removed & code reformatted
Jan 3, 2021
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
114 changes: 114 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: "Continuous Integration"

on: [ push, pull_request ]

jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
tools: composer:v2

- name: Install dependencies with composer
run: composer install -ov

- name: Run vimeo/psalm
run: ./vendor/bin/psalm --config=psalm.xml --shepherd

phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
tools: composer:v2

- name: Install dependencies with composer
run: composer install -ov

- name: Run phpstan/phpstan
run: ./vendor/bin/phpstan analyse src --level 7

phpunit:
name: PHPUnit

runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:alpine
ports:
- 5672:5672
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5

env:
PHP_EXTENSIONS: mbstring, dom, intl, json, libxml, xml, xmlwriter, sockets
PHP_INI_VALUES: assert.exception=1, zend.assertions=1

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

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}
tools: composer:v2

- name: Install dependencies
run: composer update -ov

- name: Await
uses: jakejarvis/wait-action@master

- name: Run tests with phpunit
run: XDEBUG_MODE=coverage php ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover

- name: Upload coverage file
uses: actions/upload-artifact@v2
with:
name: phpunit.coverage
path: coverage.clover

upload_coverage:
name: Upload coverage
runs-on: ubuntu-latest
needs: phpunit
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
tools: composer

- name: Download coverage files
uses: actions/download-artifact@v2
with:
path: reports

- name: Send code coverage report to Scrutinizer
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover ./reports/phpunit.coverage/coverage.clover
66 changes: 0 additions & 66 deletions .scrutinizer.yml

This file was deleted.

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

This file was deleted.

14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,16 @@ More examples can be found in [`examples`](examples) directory.
## Testing

```bash
$ composer test
```

## Benchmarks

We run benchmarks as follow:

```bash
$ RIDGE_BENCHMARK_DSN=amqp://user:pass@localhost:5672 composer bench
$ composer tests
```

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
Please see [CHANGELOG](.github/CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details.

## Security

Expand Down
80 changes: 0 additions & 80 deletions benchmarks/AbstractBench.php

This file was deleted.

52 changes: 0 additions & 52 deletions benchmarks/ConsumeBench.php

This file was deleted.

Loading