Update e2e test for new UI #105
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: Run setup:upgrade and setup:di:compile | |
on: [ pull_request ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- PHP_VERSION: php82-fpm | |
MAGENTO_VERSION: 2.4.6 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start Docker | |
run: PHP_VERSION=${{ matrix.PHP_VERSION }} MAGENTO_VERSION=magento${{ matrix.MAGENTO_VERSION }} docker compose -f .github/workflows/templates/docker-compose.yml up -d | |
- name: Create branch for Composer and remove version from composer.json | |
run: git checkout -b continuous-integration-test-branch && sed -i '/version/d' ./composer.json | |
- name: Set minimum-stability for composer (temp) | |
run: docker exec magento-project-community-edition composer config minimum-stability dev | |
- name: Upload the code into the docker container | |
run: docker cp $(pwd) magento-project-community-edition:/data/extensions/ | |
- name: Install the extensions in Magento | |
run: docker exec magento-project-community-edition composer require truelayer/magento2:@dev --no-plugins --with-all-dependencies | |
- name: Activate the extension and run setup:upgrade and setup:di:compile | |
run: docker exec magento-project-community-edition ./retry "php bin/magento module:enable TrueLayer_Connect && php bin/magento setup:upgrade && php bin/magento setup:di:compile" |