Cypress 简明教程
Cypress - GitHub
要将 Cypress 与 GitHub 集成,我们必须首先安装 Cypress GitHub App。这可以通过组织集成设置或 Cypress 仪表板中的项目设置完成。
To integrate Cypress with GitHub, we have to first install Cypress GitHub App. This can be done either from the organization integration settings or from the project settings in the Cypress Dashboard.
Installation
Cypress GitHub App 的安装可以通过两种方式完成。它们在下面详细解释。
The installation of Cypress GitHub App can be done in two ways. They are explained below in detail.
Installation via organization integration settings
按照以下步骤通过组织集成设置安装 GitHub -
Follow the steps mentioned below to install GitHub via organization integration settings −
-
Navigate to the Dashboard Organization page.
-
Choose an organization that you want to integrate with a GitHub account or organization.
-
Navigate to the chosen organization’s integration option from the navigation to the side.
-
Then, click the GitHub Integration button.
Installation via project settings
按照以下步骤通过项目设置安装 GitHub -
Follow the steps mentioned below to install GitHub via project settings −
-
Choose organization inside organization switcher.
-
Choose the project that you want to integrate with the repo in GitHub.
-
Move to the Project settings page.
-
Go to the GitHub Integration.
-
Click on Install the Cypress GitHub App.
完成 GitHub 应用安装后,我们将被重定向到 GitHub.com,以便继续执行以下步骤:
Once the GitHub App installation is done, we shall be directed to GitHub.com to proceed with further steps, which are as follows −
-
Choose the GitHub organization or account for integration with the organization Cypress Dashboard.
-
Next, we have to combine either all GitHub repositories or a particular repository with the Cypress GitHub App.
-
Click on the Install button to finish installation.
GitHub Integration Enabling
下面介绍了在 Cypress 中启用 GitHub 集成的流程:
The process to enable the GitHub integration in Cypress is explained below −
-
Move to the project settings page.
-
Navigate to the GitHub Integration section, then click on Configure.
-
Select a repository from GitHub to integrate with the project.
-
As GitHub repo is connected to a Cypress project, the GitHub integration shall be enabled.