-
Notifications
You must be signed in to change notification settings - Fork 52
117 lines (102 loc) · 4.09 KB
/
continuous-integration.yml
File metadata and controls
117 lines (102 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: "CI"
on:
push:
branches:
- '[0-9]+.x'
- '[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.x'
pull_request:
jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-latest"
env:
SYMFONY_REQUIRE: ${{matrix.symfony-require}}
SYMFONY_DEPRECATIONS_HELPER: ${{matrix.symfony-deprecations-helper}}
strategy:
fail-fast: false
matrix:
include:
# Minimum supported Symfony version and lowest PHP version
- dependencies: "php-http/guzzle7-adapter php-http/discovery:^1.12"
php-version: "8.1"
dependency-versions: "lowest"
symfony-deprecations-helper: "weak"
stability: "stable"
# Test the latest stable release
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.1"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.2"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.3"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.4"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.5"
symfony-deprecations-helper: "weak"
# Test with httplug 2.x clients
- dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev php-http/socket-client:^2.0"
php-version: "8.1"
symfony-deprecations-helper: "weak"
# Latest commit to master
- dependencies: "php-http/guzzle7-adapter php-http/vcr-plugin:^1.0@dev"
php-version: "8.5"
stability: "dev"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.5"
stability: "dev"
symfony-deprecations-helper: "weak"
# Test maintained versions of Symfony
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^6.4"
symfony-require: "6.4.*"
php-version: "8.1"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^6.4"
symfony-require: "6.4.*"
php-version: "8.2"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^7.4"
symfony-require: "7.4.*"
php-version: "8.5"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^8"
symfony-require: "8.0.*"
php-version: "8.5"
symfony-deprecations-helper: "weak"
steps:
- name: "Checkout"
uses: "actions/checkout@v5"
with:
fetch-depth: 2
- name: "Install PHP with PCOV"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "zend.assertions=1"
tools: "flex"
- name: "Enforce using stable dependencies"
run: "composer config minimum-stability ${{ matrix.stability }}"
if: "${{ matrix.stability }}"
- name: "Add dependencies and enable flex"
run: |
composer config allow-plugins.symfony/flex true
composer require --no-update ${{ matrix.dependencies }}
- name: "Work around https://github.com/symfony/symfony/pull/62692"
run: "composer require --no-update symfony/console:*"
- name: "Get correct version for workaround"
run: "composer require --no-update symfony/console:${{ matrix.symfony-require }}"
if: "${{ matrix.symfony-require }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependency-versions }}"
composer-options: "${{ matrix.composer-options }}"
- name: "Run PHPUnit"
run: "composer test"