Fix test #174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- PHP_VERSION: php73-fpm | |
MAGENTO_VERSION: 2.3.7-p4 | |
- PHP_VERSION: php74-fpm | |
MAGENTO_VERSION: 2.4.0 | |
- PHP_VERSION: php74-fpm | |
MAGENTO_VERSION: 2.4.3-with-replacements | |
- PHP_VERSION: php81-fpm | |
MAGENTO_VERSION: 2.4.6-p4 | |
- 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/ && docker exec magento-project-community-edition ./install-composer-package mollie/magento2:@dev | |
- name: Activate the extension | |
run: docker exec magento-project-community-edition ./retry "php bin/magento module:enable Mollie_Payment && php bin/magento setup:upgrade" | |
- name: Set developer mode for 2.3.7 and 2.4.0 | |
if: ${{ matrix.MAGENTO_VERSION == '2.3.7-p4' || matrix.MAGENTO_VERSION == '2.4.0' }} | |
run: docker exec magento-project-community-edition ./retry "php bin/magento deploy:mode:set developer" | |
- 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" |