Skip to content

Commit bb0d8a8

Browse files
authored
Merge pull request LambdaTest#1232 from amanchopra1905/stage
smartui monorepo
2 parents 9fb0e97 + 181a846 commit bb0d8a8

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,7 @@ module.exports = {
28892889
"test-settings-options",
28902890
"html-dom-smartui-options",
28912891
"smart-ui-build-options",
2892+
"smartui-multiple-projects-per-repo"
28922893
]
28932894
},
28942895
],

0 commit comments

Comments
 (0)