7
7
8
8
jobs :
9
9
integration-test :
10
- runs-on : " ubuntu-latest"
10
+ runs-on : " ubuntu-latest"
11
11
12
12
# Only run integration tests on feature branches. Simple documentation updates, formatting can be ignored
13
13
if : contains(github.head_ref, 'feature')
14
+ name : ${{ matrix.job_title }}
14
15
strategy :
15
16
fail-fast : true
16
17
matrix :
17
- magento : ["magento/project-community-edition:>=2.4.4 <2.4.5", "magento/project-community-edition:>=2.4.5 <2.4.6", "magento/project-community-edition:>=2.4.6 <2.4.7"]
18
+ magento :
19
+ [
20
+ " magento/project-community-edition:>=2.4.4 <2.4.5" ,
21
+ " magento/project-community-edition:>=2.4.5 <2.4.6" ,
22
+ " magento/project-community-edition:>=2.4.6 <2.4.7" ,
23
+ " magento/project-community-edition:>=2.4.7 <2.4.8" ,
24
+ ]
18
25
include :
19
26
- magento : magento/project-community-edition:>=2.4.4 <2.4.5
20
27
php : 8.1
@@ -23,26 +30,34 @@ jobs:
23
30
elasticsearch : " elasticsearch:7.16.3"
24
31
rabbitmq : " rabbitmq:3.9-management"
25
32
redis : " redis:6.2"
26
- varnish : " varnish:7.0 "
27
- nginx : " nginx:1.18 "
33
+ job_title : " 2.4.4 "
34
+
28
35
- magento : magento/project-community-edition:>=2.4.5 <2.4.6
29
36
php : 8.1
30
37
composer : 2
31
38
mysql : " mysql:8.0"
32
39
elasticsearch : " elasticsearch:7.16.3"
33
40
rabbitmq : " rabbitmq:3.9-management"
34
41
redis : " redis:6.2"
35
- varnish : " varnish:7.0 "
36
- nginx : " nginx:1.18 "
42
+ job_title : " 2.4.5 "
43
+
37
44
- magento : magento/project-community-edition:>=2.4.6 <2.4.7
38
- php : 8.1
39
- composer : 2
45
+ php : 8.2
46
+ composer : 2.2
40
47
mysql : " mysql:8.0"
41
48
elasticsearch : " elasticsearch:7.17.9"
42
- rabbitmq : " rabbitmq:3.9 -management"
49
+ rabbitmq : " rabbitmq:3.12 -management"
43
50
redis : " redis:7.0"
44
- varnish : " varnish:7.1"
45
- nginx : " nginx:1.18"
51
+ job_title : " 2.4.6"
52
+
53
+ - magento : magento/project-community-edition:>=2.4.7 <2.4.8
54
+ php : 8.3
55
+ composer : 2.7
56
+ mysql : " mariadb:10.6"
57
+ elasticsearch : " elasticsearch:7.17.9"
58
+ rabbitmq : " rabbitmq:3.12-management"
59
+ redis : " redis:7.2"
60
+ job_title : " 2.4.7"
46
61
47
62
services :
48
63
elasticsearch :
58
73
- 9200:9200
59
74
60
75
mysql :
61
- image : ${{ matrix.mysql }}
76
+ image : ${{ matrix.mysql }}
62
77
env :
63
78
MYSQL_DATABASE : magento_integration_tests
64
79
MYSQL_USER : user
77
92
- 5672:5672
78
93
- 15672:15672
79
94
steps :
80
- - uses : actions/checkout@v3
95
+ - uses : actions/checkout@v4
81
96
- name : Set PHP Version
82
97
uses : shivammathur/setup-php@v2
83
98
with :
@@ -94,50 +109,53 @@ jobs:
94
109
- uses : graycoreio/github-actions-magento2/get-magento-version@main
95
110
id : magento-version
96
111
with :
97
- working-directory : " ../magento2"
112
+ working-directory : " ../magento2"
98
113
99
114
- name : Get Composer Cache Directory
100
115
shell : bash
101
- working-directory : " ../magento2"
116
+ working-directory : " ../magento2"
102
117
id : composer-cache
103
118
run : |
104
119
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
105
120
106
121
- name : " Cache Composer Packages"
107
- uses : actions/cache@v3
122
+ uses : actions/cache@v4
108
123
with :
109
124
key : " composer | v5 | '' | ${{ hashFiles('composer.lock') }}"
110
125
path : ${{ steps.composer-cache.outputs.dir }}
111
126
112
127
- run : composer config repositories.local path $GITHUB_WORKSPACE
113
128
name : Add Github Repo for Testing
114
- working-directory : " ../magento2"
129
+ working-directory : " ../magento2"
115
130
shell : bash
116
131
117
132
- run : |
118
133
composer config --no-interaction allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
119
134
composer config --no-interaction allow-plugins.laminas/laminas-dependency-plugin true
120
135
composer config --no-interaction allow-plugins.magento/* true
121
136
name: Fixup Composer Plugins
122
- working-directory: "../magento2"
137
+ working-directory: "../magento2"
123
138
124
139
- run : composer require aligent/async-events "@dev" --no-update && composer install
125
140
name : Require and attempt install
126
- working-directory : " ../magento2"
141
+ working-directory : " ../magento2"
127
142
shell : bash
128
143
env :
129
144
COMPOSER_CACHE_DIR : ${{ steps.composer-cache.outputs.dir }}
130
145
COMPOSER_AUTH : ${{ secrets.composer_auth }}
131
146
132
147
- name : Replace Configuration Settings for env
133
- working-directory : ../magento2/dev/tests/integration
148
+ working-directory : ../magento2/dev/tests/integration
134
149
run : |
135
150
sed -i "s/'db-host' => 'localhost'/'db-host' => '127.0.0.1'/" etc/install-config-mysql.php.dist
136
151
sed -i "s/'db-user' => 'root'/'db-user' => 'user'/" etc/install-config-mysql.php.dist
137
152
sed -i "s/'db-password' => '123123q'/'db-password' => 'password'/" etc/install-config-mysql.php.dist
138
153
sed -i "s/'elasticsearch-host' => 'localhost'/'elasticsearch-host' => '127.0.0.1'/" etc/install-config-mysql.php.dist
139
154
sed -i "s/'amqp-host' => 'localhost'/'amqp-host' => '127.0.0.1'/" etc/install-config-mysql.php.dist
155
+ sed -i "s/'consumers-wait-for-messages' => '0'/'consumers-wait-for-messages' => '1'/" etc/install-config-mysql.php.dist
156
+ mkdir etc/di/preferences/cli
157
+ cp ../../../vendor/aligent/async-events/Test/_files/ce.php ./etc/di/preferences/cli
140
158
141
159
- run : ../../../vendor/bin/phpunit ../../../vendor/aligent/async-events/Test/Integration
142
- working-directory : ../magento2/dev/tests/integration
160
+ working-directory : ../magento2/dev/tests/integration
143
161
name : Run Integration Tests
0 commit comments