|
| 1 | +--- |
| 2 | +id: smartui-multiple-projects-per-repo |
| 3 | +title: Configure Multiple Projects per repo |
| 4 | +sidebar_label: Multiple Projects per repo |
| 5 | +description: SmartUI can now performs visual testing on pages that have videos. |
| 6 | +keywords: |
| 7 | + - lambdatest |
| 8 | + - smart ui |
| 9 | + - videos |
| 10 | + - storybook |
| 11 | +url: https://www.lambdatest.com/support/docs/smartui-multiple-projects-per-repo/ |
| 12 | +site_name: LambdaTest |
| 13 | +slug: smartui-multiple-projects-per-repo/ |
| 14 | +--- |
| 15 | + |
| 16 | +<script type="application/ld+json" |
| 17 | + dangerouslySetInnerHTML={{ __html: JSON.stringify({ |
| 18 | + "@context": "https://schema.org", |
| 19 | + "@type": "BreadcrumbList", |
| 20 | + "itemListElement": [{ |
| 21 | + "@type": "ListItem", |
| 22 | + "position": 1, |
| 23 | + "name": "LambdaTest", |
| 24 | + "item": "https://www.lambdatest.com" |
| 25 | + },{ |
| 26 | + "@type": "ListItem", |
| 27 | + "position": 2, |
| 28 | + "name": "Support", |
| 29 | + "item": "https://www.lambdatest.com/support/docs/" |
| 30 | + },{ |
| 31 | + "@type": "ListItem", |
| 32 | + "position": 3, |
| 33 | + "name": "Monorepo", |
| 34 | + "item": "https://www.lambdatest.com/support/docs/smartui-multiple-projects-per-repo/" |
| 35 | + }] |
| 36 | + }) |
| 37 | + }} |
| 38 | +></script> |
| 39 | +SmartUI allows you to manage and test UI components effectively within a single repository. By organizing multiple projects in a single repository, you can centralize your workflows and streamline collaboration. This guide will walk you through setting up multiple projects in a repository for SmartUI and how you can trigger the same via GitHub Actions pipeline. |
| 40 | + |
| 41 | +## Setting Up Multiple Projects in a Repository |
| 42 | + |
| 43 | +### Prerequisites |
| 44 | +- Your LambdaTest [Username and Access key](https://accounts.lambdatest.com/security). |
| 45 | +- Your SmartUI Project Token |
| 46 | + |
| 47 | +### Step 1: Organize Your Repository |
| 48 | +Create a repository where you can organize your projects into various directories. You can use your own project to configure and test it. For demo purposes, we are using the sample repository. |
| 49 | + |
| 50 | +:::tip Sample repo |
| 51 | +Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the SmartUI. |
| 52 | +<a href="https://github.com/LambdaTest/smartui-monorepo-sample/" className="github__anchor"><img loading="lazy" src={require('../assets/images/icons/github.png').default} alt="Image" className="doc_img"/> View on GitHub</a> |
| 53 | +::: |
| 54 | + |
| 55 | +### Step 2: Create your Secrets |
| 56 | +- Click on the **Settings** of your repository. |
| 57 | +- Go to the **Security** option > **Secrets and Variables** > **Actions**. |
| 58 | +- Create your secrets with variable name **LT_USERNAME** and **LT_ACCESS_KEY**. You can fetch your credentials from the [Accounts and Settings](https://accounts.lambdatest.com/security) dashboard. |
| 59 | + |
| 60 | +### Step 3: Create your GitHub Actions Workflow |
| 61 | +- Navigate to the main page of the repository. |
| 62 | +- Under your repository name, click **Actions**. |
| 63 | +- In the left sidebar, click the **New workflow** button. |
| 64 | + |
| 65 | +```yaml reference |
| 66 | +https://github.com/LambdaTest/smartui-monorepo-sample/blob/main/.github/workflows/main.yml |
| 67 | +``` |
| 68 | + |
| 69 | +### Step 4: Execute your projects |
| 70 | +- Click on the **Actions** button of your repository to trigger the pipeline. |
| 71 | +- Provide the **PROJECT TOKEN** to trigger your code projects. |
| 72 | +- Go to the [SmartUI Dashboard](https://smartui.lambdatest.com/) to check the results. |
0 commit comments