|
1 | 1 | name: Installation |
| 2 | + |
2 | 3 | on: |
3 | 4 | push: |
4 | 5 | branches: |
5 | | - - "*.x" |
| 6 | + - *.x |
6 | 7 | pull_request: |
7 | 8 |
|
8 | 9 | jobs: |
9 | 10 | installation: |
10 | 11 | name: Installation test ${{ matrix.expect }} ${{ matrix.method }} ${{ matrix.requirements }} ${{ matrix.pecl }} |
| 12 | + |
11 | 13 | runs-on: ubuntu-latest |
12 | 14 |
|
13 | 15 | strategy: |
14 | 16 | matrix: |
15 | 17 | include: |
16 | | - # Test that we find Guzzle 6 v1 |
17 | 18 | - expect: will-find |
18 | | - requirements: "php-http/guzzle6-adapter:^1.1.1" |
19 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
20 | | - # Test that we find Guzzle 6 v2 |
| 19 | + requirements: php-http/guzzle6-adapter:^1.1.1 |
| 20 | + method: Http\Discovery\HttpClientDiscovery::find(); |
21 | 21 | - expect: will-find |
22 | | - requirements: "php-http/guzzle6-adapter:^2.0.1" |
23 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
24 | | - # Test that we find Guzzle 7 Adapter |
| 22 | + requirements: php-http/guzzle6-adapter:^2.0.1 |
| 23 | + method: Http\Discovery\HttpClientDiscovery::find(); |
25 | 24 | - expect: will-find |
26 | | - requirements: "php-http/guzzle7-adapter:^0.1" |
27 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
28 | | - # Test that we find a client with Symfony and Guzzle PSR-7 |
| 25 | + requirements: php-http/guzzle7-adapter:^0.1 |
| 26 | + method: Http\Discovery\HttpClientDiscovery::find(); |
29 | 27 | - expect: will-find |
30 | | - requirements: "symfony/http-client:^5 php-http/httplug php-http/message-factory guzzlehttp/psr7:^1 http-interop/http-factory-guzzle" |
31 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
32 | | - # We should fail if we dont have php-http/message-factory or PSR-17 |
| 28 | + requirements: symfony/http-client:^5 php-http/httplug php-http/message-factory guzzlehttp/psr7:^1 http-interop/http-factory-guzzle |
| 29 | + method: Http\Discovery\HttpClientDiscovery::find(); |
33 | 30 | - expect: cant-find |
34 | | - requirements: "symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1" |
35 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
| 31 | + requirements: symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1 |
| 32 | + method: Http\Discovery\HttpClientDiscovery::find(); |
36 | 33 | - expect: cant-find |
37 | | - requirements: "symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1 http-interop/http-factory-guzzle" |
38 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
39 | | - # We should be able to find a client when Symfony is only partly installed and we have guzzle adapter installed |
| 34 | + requirements: symfony/http-client:^5 php-http/httplug guzzlehttp/psr7:^1 http-interop/http-factory-guzzle |
| 35 | + method: Http\Discovery\HttpClientDiscovery::find(); |
40 | 36 | - expect: will-find |
41 | | - requirements: "symfony/http-client:^5 php-http/guzzle6-adapter php-http/httplug php-http/message-factory guzzlehttp/psr7:^1" |
42 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
43 | | - # Test that we find a client with Symfony and Guzzle |
| 37 | + requirements: symfony/http-client:^5 php-http/guzzle6-adapter php-http/httplug php-http/message-factory guzzlehttp/psr7:^1 |
| 38 | + method: Http\Discovery\HttpClientDiscovery::find(); |
44 | 39 | - expect: will-find |
45 | | - requirements: "php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter" |
46 | | - method: "Http\\Discovery\\HttpClientDiscovery::find();" |
47 | | - # Test that we find an async client with Symfony and Guzzle |
| 40 | + requirements: php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter |
| 41 | + method: Http\Discovery\HttpClientDiscovery::find(); |
48 | 42 | - expect: will-find |
49 | | - requirements: "php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter" |
50 | | - method: "Http\\Discovery\\HttpAsyncClientDiscovery::find();" |
51 | | - # Test that we find PSR-18 Guzzle 6 |
| 43 | + requirements: php-http/client-common:^2 php-http/message:^1.8 symfony/http-client:^4 php-http/guzzle6-adapter |
| 44 | + method: Http\Discovery\HttpAsyncClientDiscovery::find(); |
52 | 45 | - expect: will-find |
53 | | - requirements: "php-http/guzzle6-adapter:^2.0.1" |
54 | | - method: "Http\\Discovery\\Psr18ClientDiscovery::find();" |
55 | | - # Test that we find PSR-18 Guzzle 7 |
| 46 | + requirements: php-http/guzzle6-adapter:^2.0.1 |
| 47 | + method: Http\Discovery\Psr18ClientDiscovery::find(); |
56 | 48 | - expect: will-find |
57 | | - requirements: "guzzlehttp/guzzle:^7.0.1" |
58 | | - method: "Http\\Discovery\\Psr18ClientDiscovery::find();" |
59 | | - # Test that we find PSR-18 Symfony 4 |
| 49 | + requirements: guzzlehttp/guzzle:^7.0.1 |
| 50 | + method: Http\Discovery\Psr18ClientDiscovery::find(); |
60 | 51 | - expect: will-find |
61 | | - requirements: "symfony/http-client:^4 php-http/httplug php-http/message-factory nyholm/psr7:^1.3" |
62 | | - method: "Http\\Discovery\\Psr18ClientDiscovery::find();" |
63 | | - # Test that we find PSR-18 Symfony 5 |
| 52 | + requirements: symfony/http-client:^4 php-http/httplug php-http/message-factory nyholm/psr7:^1.3 |
| 53 | + method: Http\Discovery\Psr18ClientDiscovery::find(); |
64 | 54 | - expect: will-find |
65 | | - requirements: "symfony/http-client:^5 php-http/httplug php-http/message-factory nyholm/psr7:^1.3" |
66 | | - method: "Http\\Discovery\\Psr18ClientDiscovery::find();" |
67 | | - # Test that we find PSR-17 http-interop |
| 55 | + requirements: symfony/http-client:^5 php-http/httplug php-http/message-factory nyholm/psr7:^1.3 |
| 56 | + method: Http\Discovery\Psr18ClientDiscovery::find(); |
68 | 57 | - expect: will-find |
69 | | - requirements: "http-interop/http-factory-guzzle:^1" |
70 | | - method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();" |
71 | | - # Test that we find PSR-17 nyholm |
| 58 | + requirements: http-interop/http-factory-guzzle:^1 |
| 59 | + method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); |
72 | 60 | - expect: will-find |
73 | | - requirements: "nyholm/psr7:^1.3" |
74 | | - method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();" |
75 | | - # Test that we find Phalcon with PSR |
| 61 | + requirements: nyholm/psr7:^1.3 |
| 62 | + method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); |
76 | 63 | - expect: will-find |
77 | | - pecl: "psr-1.0.0, phalcon-4.0.6" |
78 | | - method: "Http\\Discovery\\Psr17FactoryDiscovery::findRequestFactory();" |
| 64 | + pecl: psr-1.0.0, phalcon-4.0.6 |
| 65 | + method: Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); |
79 | 66 |
|
80 | 67 | steps: |
81 | 68 | - name: Checkout code |
|
0 commit comments