Skip to content

Commit 46835f7

Browse files
mihai.comanmihai.coman
authored andcommitted
ICP-11 add config file
1 parent 6ed6a81 commit 46835f7

File tree

3 files changed

+86
-65
lines changed

3 files changed

+86
-65
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: RW Integration Tests
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- ready_for_review
9+
10+
jobs:
11+
integration-tests:
12+
name: Magento 2 Integration Tests
13+
runs-on: ubuntu-latest
14+
services:
15+
mysql:
16+
image: mysql:5.7
17+
env:
18+
MYSQL_ROOT_PASSWORD: root
19+
MYSQL_SQL_TO_RUN: 'GRANT ALL ON *.* TO "root"@"%";'
20+
ports:
21+
- 3306:3306
22+
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
23+
es:
24+
image: docker.io/wardenenv/elasticsearch:7.8
25+
ports:
26+
- 9200:9200
27+
env:
28+
'discovery.type': single-node
29+
'xpack.security.enabled': false
30+
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
31+
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: M2 Integration Tests with Magento 2 (Php8.1)
35+
uses: extdn/github-actions-m2/magento-integration-tests/8.1@master
36+
with:
37+
MAGENTO_PRE_INSTALL_SCRIPT: ./githubscripts/integration/pre-install-script.sh
38+
MAGENTO_POST_INSTALL_SCRIPT: ./githubscripts/integration/post-install-script.sh
39+
MODULE_NAME: RocketWeb_CmsImportExport
40+
COMPOSER_NAME: rocketweb/module-cms-import-export
41+
MAGENTO_VERSION: '2.4.5-p5'
42+
PHPUNIT_FILE: './vendor/rocketweb/module-cms-import-export/phpunit.rw.xml'
43+
COMPOSER_VERSION: 2

phpunit.gopher.xml

Lines changed: 0 additions & 65 deletions
This file was deleted.

phpunit.rw.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright © Reach Digital (https://www.reachdigital.io/)
4+
~ See LICENSE.txt for license details.
5+
-->
6+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.2/phpunit.xsd"
8+
colors="true"
9+
beStrictAboutTestsThatDoNotTestAnything="false"
10+
bootstrap="./framework/bootstrap.php"
11+
stderr="true"
12+
>
13+
<!-- Test suites definition -->
14+
<testsuites>
15+
<testsuite name="IntegrationTests">
16+
<directory>../../../vendor/rocketweb/module-cms-import-export/Test/Integration</directory>
17+
</testsuite>
18+
</testsuites>
19+
20+
<!-- PHP INI settings and constants definition -->
21+
<php>
22+
<includePath>.</includePath>
23+
<includePath>testsuite</includePath>
24+
<ini name="date.timezone" value="America/Los_Angeles"/>
25+
<ini name="xdebug.max_nesting_level" value="200"/>
26+
<ini name="memory_limit" value="-1"/>
27+
<const name="TESTS_INSTALL_CONFIG_FILE" value="etc/install-config-mysql.php"/>
28+
<const name="TESTS_POST_INSTALL_SETUP_COMMAND_CONFIG_FILE" value="etc/post-install-setup-command-config.php"/>
29+
<const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/>
30+
<const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
31+
<const name="TESTS_CLEANUP" value="enabled"/>
32+
<const name="TESTS_MEM_USAGE_LIMIT" value="8G"/>
33+
<const name="TESTS_MEM_LEAK_LIMIT" value="0"/>
34+
<const name="TESTS_EXTRA_VERBOSE_LOG" value="1"/>
35+
<const name="TESTS_MAGENTO_MODE" value="developer"/>
36+
<const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="-1"/>
37+
</php>
38+
<!-- Test listeners -->
39+
<listeners>
40+
<listener class="Magento\TestFramework\Event\PhpUnit"/>
41+
<listener class="Magento\TestFramework\ErrorLog\Listener"/>
42+
</listeners>
43+
</phpunit>

0 commit comments

Comments
 (0)