File tree 1 file changed +15
-20
lines changed
1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change 41
41
phpseclib : ' ^3.0'
42
42
composer : ' composer:v2'
43
43
coverage : none
44
- services :
45
- rabbitmq :
46
- image : rabbitmq:3.11-management
47
- ports :
48
- - 5671:5671
49
- - 5672:5672
50
- - 15671:15671
51
- - 15672:15672
52
- volumes :
53
- - ${{ github.workspace }}:/src
54
- env :
55
- RABBITMQ_CONFIG_FILE : /src/tests/rabbitmq.conf
56
- proxy :
57
- image : ghcr.io/shopify/toxiproxy:2.5.0
58
- ports :
59
- - 8474:8474
60
- - 5673:5673
61
44
62
45
name : PHP ${{ matrix.php }} + phpseclib ${{ matrix.phpseclib }}
63
46
env :
68
51
- name : Checkout
69
52
uses : actions/checkout@v4
70
53
54
+ - name : Run Toxiproxy
55
+ run : |
56
+ docker run --detach --pull always \
57
+ --publish 8474:8474 \
58
+ --publish 5673:5673 \
59
+ ghcr.io/shopify/toxiproxy:latest
60
+
61
+ - name : Run RabbitMQ
62
+ run : |
63
+ docker run --detach --pull always \
64
+ --env RABBITMQ_CONFIG_FILE=/src/tests/rabbitmq.conf \
65
+ --publish 5671:5671 --publish 5672:5672 \
66
+ --publish 15671:15671 --publish 15672:15672 \
67
+ --volume ${{ github.workspace }}:/src:ro rabbitmq:3-management
68
+
71
69
- name : Install PHP
72
70
uses : shivammathur/setup-php@v2
73
71
with :
79
77
- name : Check PHP info
80
78
run : php tests/phpinfo.php
81
79
82
- - name : Re-start broker service to pick up rabbitmq.conf
83
- run : docker restart ${{ job.services.rabbitmq.id }}
84
-
85
80
- name : Composer install
86
81
run : composer require --prefer-dist --no-progress --no-suggest phpseclib/phpseclib ${{ matrix.phpseclib }}
87
82
You can’t perform that action at this time.
0 commit comments