11name : ExtDN Integration Tests
2- on : [push, pull_request ]
2+ on : [push]
33
44jobs :
55 integration-tests :
66 name : Magento 2 Integration Tests
77 runs-on : ubuntu-latest
88 services :
99 mysql :
10- image : mysql:5.7
10+ image : mysql:8.0
1111 env :
1212 MYSQL_ROOT_PASSWORD : root
1313 ports :
1414 - 3306:3306
15- options : --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
15+ options : --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping"
1616 es :
1717 image : docker.io/wardenenv/elasticsearch:7.8
1818 ports :
@@ -22,18 +22,36 @@ jobs:
2222 ' xpack.security.enabled ' : false
2323 ES_JAVA_OPTS : " -Xms64m -Xmx512m"
2424 options : --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
25+ redis :
26+ image : redis
27+ ports :
28+ - 6379:6379
29+ options : --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
2530 env :
2631 MAGENTO_MARKETPLACE_USERNAME : ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}
2732 MAGENTO_MARKETPLACE_PASSWORD : ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
2833 MODULE_NAME : ${{ secrets.MODULE_NAME }}
2934 COMPOSER_NAME : ${{ secrets.COMPOSER_NAME }}
3035 steps :
3136 - uses : actions/checkout@v2
32- - uses : extdn/github-actions-m2/magento-integration-tests/7.3@master
33- env :
34- CE_VERSION : 2.3.5-p2
35- - uses : actions/checkout@v2
36- - uses : extdn/github-actions-m2/magento-integration-tests/7.4@master
37+ - name : Cache Composer dependencies
38+ uses : actions/cache@v2
39+ with :
40+ path : /tmp/composer-cache
41+ key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
42+
43+ - uses : extdn/github-actions-m2/magento-integration-tests/8.3@master
3744 env :
38- CE_VERSION : 2.4.1
45+ MAGENTO_VERSION : ' 2.4.7-p1'
46+ COMPOSER_VERSION : 2
47+ with :
48+ magento_pre_install_script : .github/workflows/extdn-integration-tests-pre-install.sh
49+ magento_post_install_script : .github/workflows/extdn-integration-tests-post-install.sh
3950
51+ - uses : extdn/github-actions-m2/magento-integration-tests/8.3@master
52+ env :
53+ MAGENTO_VERSION : ' 2.4.7-p1'
54+ COMPOSER_VERSION : 2
55+ with :
56+ magento_pre_install_script : .github/workflows/extdn-integration-tests-pre-install.sh
57+ magento_post_install_script : .github/workflows/extdn-integration-tests-post-install.sh
0 commit comments