11name : Magento 2 Integration Tests
2- # on: ['push', 'pull_request']
3- on :
4- release :
5- push :
6- branches :
7- - ' main'
2+ on : ['push', 'pull_request']
83
94jobs :
105 integration-tests :
116 name : Magento 2 Integration Tests
12- runs-on : self-hosted
13- # runs-on: ubuntu-latest
7+ # runs-on: self-hosted
8+ runs-on : ubuntu-latest
149 container :
15- image : yireo/magento2installed:2.4.7-p4
10+ image : yireo/magento2installed:2.4.8-p3
1611 services :
1712 mysql :
1813 image : mysql:8.0
@@ -21,13 +16,12 @@ jobs:
2116 MYSQL_USER : magento2
2217 MYSQL_PASSWORD : magento2
2318 MYSQL_DATABASE : magento2
24- options : --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping"
19+ options : --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping"
2520 opensearch :
26- image : yireo/opensearch-dummy
21+ image : yireo/opensearch:latest
2722 env :
2823 ' discovery.type ' : single-node
29- ' xpack.security.enabled ' : false
30- ES_JAVA_OPTS : " -Xms128m -Xmx128m"
24+ ES_JAVA_OPTS : " -Xms256m -Xmx256m"
3125 options : --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
3226 redis :
3327 image : redis
3630 - name : Checkout sources
3731 uses : actions/checkout@v4
3832
33+ - name : Enable log_bin_trust_function_creators
34+ run : mysql -h mysql -uroot -proot -e "SET GLOBAL log_bin_trust_function_creators=1;"
35+
36+ - name : Configure GitLab
37+ run : |
38+ test -n "${{ secrets.GITLAB_TOKEN }}" || exit 0
39+ cd /tmp/magento
40+ composer config --auth gitlab-token.gitlab.yireo.com ${{ secrets.GITLAB_TOKEN }}
41+ composer config repositories.loki-checkout composer https://gitlab.yireo.com/api/v4/group/loki-checkout/-/packages/composer/packages.json
42+
3943 - name : Add module source
4044 run : |
4145 export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
5357 export MAGENTO_MODULE=${EXTENSION_VENDOR}_${EXTENSION_NAME}
5458 cd /tmp/magento/dev/tests/integration/
5559 cp -R ${GITHUB_WORKSPACE}/.github/workflows/integration-tests/* .
60+ php ../../../vendor/bin/phpunit --atleast-version 9 && cp phpunit9.xml phpunit.xml
61+ php ../../../vendor/bin/phpunit --atleast-version 10 && cp phpunit10.xml phpunit.xml
5662 php -d memory_limit=4G ../../../vendor/bin/phpunit -c phpunit.xml ../../../vendor/$COMPOSER_NAME/Test/Integration
5763
0 commit comments