-
Notifications
You must be signed in to change notification settings - Fork 50
Feature/mess detector multi version #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Build Mess Detector Images | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 6 * * 0" # 6 AM Weekly | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - .github/workflows/mess-detector-images.yml | ||
| - 'magento-mess-detector/**' | ||
| workflow_run: | ||
| workflows: | ||
| - Build Integration Images | ||
| types: | ||
| - completed | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| name: "Build and deploy" | ||
|
|
||
| runs-on: "ubuntu-latest" | ||
|
|
||
| strategy: | ||
| matrix: | ||
| php-version: | ||
| - "7.3" | ||
| - "7.4" | ||
| - "8.1" | ||
| - "8.2" | ||
| - "8.3" | ||
| - "8.4" | ||
| - "8.5" | ||
| actions-with-docker-image: | ||
| - "magento-mess-detector" | ||
|
|
||
| env: | ||
| DOCKER_USERNAME: "extdn" | ||
|
|
||
| steps: | ||
| - name: "Checkout" | ||
| uses: "actions/checkout@v4" | ||
|
|
||
| - name: "Build Docker image" | ||
| run: "docker build --tag extdn/${{ matrix.actions-with-docker-image }}-action:${{ matrix.php-version }}-latest ${{ matrix.actions-with-docker-image }}/. -f ${{ matrix.actions-with-docker-image }}/Dockerfile:${{ matrix.php-version }}" | ||
|
|
||
| - name: "Docker Login" | ||
| run: "echo ${{ secrets.DOCKER_PASSWORD }} | $(which docker) login --password-stdin --username ${{ env.DOCKER_USERNAME }}" | ||
|
|
||
| - name: "Push Docker image (latest)" | ||
| run: "docker push extdn/${{ matrix.actions-with-docker-image }}-action:${{ matrix.php-version }}-latest" | ||
|
|
||
| - name: "Docker Logout" | ||
| run: "docker logout" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:7.3-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:7.4-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:8.1-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:8.2-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:8.3-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:8.4-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: 'Magento 2 Mess Detector' | ||
| author: 'ExtDN' | ||
| description: 'performs php static code analysis with the Magento 2 Mess Detector ruleset' | ||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://extdn/magento-mess-detector-action:8.5-latest' | ||
| branding: | ||
| icon: 'code' | ||
| color: 'green' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| FROM extdn/magento-integration-tests-action:7.3-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.3-p3" | ||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This (and the ones in the other versions) need to be updated. Just compare with the current PHPStan file. |
||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:7.3-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| FROM extdn/magento-integration-tests-action:7.4-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.5-p14" | ||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}' | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:7.4-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| FROM extdn/magento-integration-tests-action:8.1-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.6-p13" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use |
||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}' | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:8.1-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| FROM extdn/magento-integration-tests-action:8.2-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.7-p8" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't we use |
||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}' | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:8.2-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| FROM extdn/magento-integration-tests-action:8.3-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.8-p3" | ||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:8.3-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| FROM extdn/magento-integration-tests-action:8.4-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.8-p3" | ||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:8.4-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| FROM extdn/magento-integration-tests-action:8.5-latest AS builder | ||
|
|
||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| RUN composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ --no-plugins --no-install --no-interaction magento/project-community-edition /var/www/magento2ce "2.4.9" | ||
|
|
||
| WORKDIR "/var/www/magento2ce" | ||
| # https://github.com/composer/composer/issues/12623#issuecomment-3551953185 | ||
| RUN composer config --unset repositories || true | ||
| RUN composer config --unset repo.0 | ||
| RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/ | ||
| RUN composer config --no-plugins allow-plugins true | ||
| RUN composer require hoa/regex --no-update | ||
| RUN composer install --prefer-dist | ||
|
|
||
| FROM extdn/magento-integration-tests-action:8.5-latest | ||
| COPY --from=builder /var/www/magento2ce/ /m2/ | ||
| RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini | ||
| COPY phpunit.phpmd.xml /m2/dev/tests/static/phpunit.phpmd.xml | ||
| COPY PhpmdRunner.php /m2/dev/tests/static/testsuite/Magento/Test/Php/PhpmdRunner.php | ||
| COPY LiveCodePhpmdRunner.php /m2/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/LiveCodePhpmdRunner.php | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
| ENTRYPOINT ["/entrypoint.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.