Skip to content

Commit 29f845e

Browse files
committed
Update test suite to avoid unhandled promise rejections
1 parent 0c3c3ca commit 29f845e

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
1010
runs-on: ubuntu-22.04
11+
continue-on-error: true
1112
strategy:
1213
matrix:
1314
php:
@@ -47,10 +48,10 @@ jobs:
4748
steps:
4849
- uses: actions/checkout@v3
4950
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
50-
- name: Run hhvm composer.phar require react/async:^2 react/promise:^2 # downgrade Async and Promise for HHVM
51+
- name: Run hhvm composer.phar require --dev react/async:^2 react/promise:^2 phpunit/phpunit:^5.7 # downgrade Async and Promise for HHVM
5152
uses: docker://hhvm/hhvm:3.30-lts-latest
5253
with:
53-
args: hhvm composer.phar require react/async:^2 react/promise:^2
54+
args: hhvm composer.phar require --dev react/async:^2 react/promise:^2 phpunit/phpunit:^5.7
5455
- name: Run hhvm vendor/bin/phpunit --exclude-group internet
5556
uses: docker://hhvm/hhvm:3.30-lts-latest
5657
with:

composer.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,35 @@
1515
"react/event-loop": "^1.4",
1616
"react/http": "^1.8",
1717
"react/promise": "^3 || ^2.10 || ^1.2",
18-
"react/promise-stream": "^1.5",
18+
"react/promise-stream": "^1.6",
1919
"react/promise-timer": "^1.9",
2020
"react/socket": "^1.13",
2121
"react/stream": "^1.3"
2222
},
2323
"require-dev": {
2424
"clue/stream-filter": "^1.3",
25-
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
25+
"phpunit/phpunit": "^9.6 || ^7.5 || ^5.7 || ^4.8.36",
26+
"react/async": "^4.2@dev || ^3.2@dev || ^4 || ^3 || ^2",
27+
"react/dns": "^1.12@dev",
28+
"react/http": "^1.10@dev",
29+
"react/promise": "^3@dev || ^2.10 || ^1.2",
30+
"react/promise-stream": "dev-garbage as 1.7.0",
31+
"react/promise-timer": "^1.10@dev",
32+
"react/socket": "dev-garbage as 1.14.0"
2633
},
2734
"config": {
2835
"preferred-install": {
2936
"react/*": "source"
3037
}
38+
},
39+
"repositories": {
40+
"promise-stream": {
41+
"type": "vcs",
42+
"url": "https://github.com/clue-labs/promise-stream"
43+
},
44+
"socket": {
45+
"type": "vcs",
46+
"url": "https://github.com/clue-labs/socket"
47+
}
3148
}
3249
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy