Skip to content

Merge pull request #11 from michielgerritsen/release #34

Merge pull request #11 from michielgerritsen/release

Merge pull request #11 from michielgerritsen/release #34

name: Integration Tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
include:
- PHP_VERSION: php73-fpm
MAGENTO_VERSION: 2.3.7-p3
- PHP_VERSION: php74-fpm
MAGENTO_VERSION: 2.4.0
- PHP_VERSION: php83-fpm
MAGENTO_VERSION: 2.4.7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start Docker
run: docker run --detach --name magento-project-community-edition michielgerritsen/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }}
- name: Remove version from composer.json
run: sed -i '/version/d' ./composer.json
- name: Upload the code into the docker container
run: docker cp $(pwd)/. magento-project-community-edition:/data/extensions/mollie-magento2-multishipping/
- name: Install Mollie and Mollie Multishipping extensions
run: docker exec magento-project-community-edition ./install-composer-package mollie/magento2 mollie/magento2-multishipping:@dev
- name: Enable modules
run: docker exec magento-project-community-edition bash -c "php bin/magento module:enable Mollie_Payment Mollie_Multishipping && php bin/magento setup:upgrade"
- name: Run tests
run: docker exec magento-project-community-edition bash -c "cd /data/dev/tests/integration/ && /data/vendor/bin/phpunit -c /data/dev/tests/integration/phpunit.xml"