Skip to content

Commit 2130d87

Browse files
committed
update tests
1 parent 968a975 commit 2130d87

File tree

1 file changed

+9
-28
lines changed

1 file changed

+9
-28
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,6 @@ jobs:
1818
- laravel: 9.*
1919
testbench: 7.*
2020

21-
services:
22-
rabbitmq:
23-
# 3.8.10 and later versions has enabled TLSv1.3 by default which is not supported by PHP images
24-
# TLSv1.3 can be disabled by using configuration file, but not environment variables
25-
image: rabbitmq:3.8.9-management
26-
ports:
27-
- 5671:5671
28-
- 5672:5672
29-
- 15671:15671
30-
- 15672:15672
31-
volumes:
32-
- ${{ github.workspace }}:/src
33-
env:
34-
RABBITMQ_SSL_CACERTFILE: /src/tests/certs/ca_certificate.pem
35-
RABBITMQ_SSL_CERTFILE: /src/tests/certs/server_certificate.pem
36-
RABBITMQ_SSL_KEYFILE: /src/tests/certs/server_key.pem
37-
RABBITMQ_SSL_VERIFY: verify_peer
38-
RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT: 0
39-
proxy:
40-
image: ghcr.io/shopify/toxiproxy:2.5.0
41-
ports:
42-
- 8474:8474
43-
- 5673:5673
44-
env:
45-
TOXIPROXY_HOST: localhost
46-
TOXIPROXY_AMQP_TARGET: rabbitmq
47-
TOXIPROXY_AMQP_PORT: 5673
48-
4921
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
5022

5123
steps:
@@ -62,6 +34,15 @@ jobs:
6234
extensions: bcmath, curl, dom, mbstring, pcntl, sockets, xml, intl
6335
coverage: none
6436

37+
- name: Set up Docker
38+
run: |
39+
sudo rm /usr/local/bin/docker-compose
40+
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` > docker-compose
41+
chmod +x docker-compose
42+
sudo mv docker-compose /usr/local/bin
43+
- name: Start Docker container
44+
run: docker-compose up -d
45+
6546
- name: Install dependencies
6647
run: |
6748
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update

0 commit comments

Comments
 (0)