-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (63 loc) · 2.73 KB
/
magento-integration-tests.yml
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
name: Integration Tests
on:
push:
branches:
- master
pull_request:
branches:
- 'master'
- 'release/**'
jobs:
integration-tests:
strategy:
matrix:
magento_version: [2.3.7-p3, 2.4.2]
name: Magento 2 Integration Tests
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_SQL_TO_RUN: 'GRANT ALL ON *.* TO "root"@"%";'
ports:
- 3306:3306
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
es:
image: docker.io/wardenenv/elasticsearch:7.8
ports:
- 9200:9200
env:
'discovery.type': single-node
'xpack.security.enabled': false
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- if: matrix.magento_version == '2.3.7-p3'
name: M2 Integration Tests on Magento ${{ matrix.magento_version }}
uses: MultiSafepay/github-actions-m2/magento-integration-tests/7.3@with-coverage-support
env:
MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}
MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
GLOBAL_GITHUB_TOKEN: ${{ secrets.GLOBAL_GITHUB_TOKEN }}
CURRENT_HEAD_REF: ${{ github.event.pull_request.head.ref }}
with:
module_name: MultiSafepay_ConnectFrontend
composer_name: multisafepay/magento2-frontend
ce_version: '${{ matrix.magento_version }}'
magento_pre_install_script: .github/workflows/magento-integration-tests-pre-phpunit.sh
- if: matrix.magento_version == '2.4.2'
name: M2 Integration Tests on Magento ${{ matrix.magento_version }}
uses: MultiSafepay/github-actions-m2/magento-integration-tests/7.4@with-coverage-support
env:
MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}
MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
GLOBAL_GITHUB_TOKEN: ${{ secrets.GLOBAL_GITHUB_TOKEN }}
CURRENT_HEAD_REF: ${{ github.event.pull_request.head.ref }}
with:
module_name: MultiSafepay_ConnectFrontend
composer_name: multisafepay/magento2-frontend
ce_version: '${{ matrix.magento_version }}'
phpunit_file: './phpunit.xml'
magento_pre_install_script: .github/workflows/magento-integration-tests-pre-phpunit.sh