[FEAT] Run integration tests w/o Rabbitmq

未关闭
#14 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, mysql, php
领域
ci-cd, testing

调研方向

The reporter's workaround is a sed pipeline over dev/tests/integration/etc/install-config-mysql.php.dist that deletes the amqp lines, so start by finding where this action generates or edits that integration config. Done means a documented or input-controlled way to run integration tests without RabbitMQ, confirmed by a run. The thread is 300 days quiet and the issue was copied from another repo, so confirm with maintainers which approach they want first.

由索引模型根据 Issue 内容生成。

描述

💡 Feature request

Feature Name

The Desired Behavior

I never saw integration tests that depend on RabbitMQ. Since there is a way to install Magento w/o it - I think it's a good idea to speed up the integration test.

Currently, I'm not using these actions because of this.
here is my config preparation for integration tests:

      - name: Replace Configuration Settings for env
        working-directory: ./magento2/dev/tests/integration/etc
        run: |
          cat install-config-mysql.php.dist \
            | sed "s/'db-host' => 'localhost'/'db-host' => '127.0.0.1'/" \
            | sed "s/'db-user' => 'root'/'db-user' => 'user'/" \
            | sed "s/'db-password' => '123123q'/'db-password' => 'password'/" \
            | sed "s/'elasticsearch-host' => 'localhost'/'elasticsearch-host' => '127.0.0.1'/" \
            | sed '/amqp/d' > install-config-mysql.php

Your Use Case

Prior Work

Environment


Magento version: X.Y.Z 
PHP Version version: X.Y.Z 


Others:

cc: @ihor-sviziev

Copied from https://github.com/graycoreio/github-actions-magento2/issues/64

主要语言
TypeScript
星标
12
派生
15
平均合并
3 天 15 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mage-os/github-actions 的其他 Issue

查看 mage-os/github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。