Skip to content

Commit 0ba7d72

Browse files
Merge pull request #4 from srivishnua-lambdatest/testing-ci
Changes in the CI files and config
2 parents 64fa10c + 5163e9d commit 0ba7d72

File tree

3 files changed

+38
-260
lines changed

3 files changed

+38
-260
lines changed
Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
1-
name: Quality Checks
2-
on:
3-
pull_request:
4-
branches:
5-
- main
6-
7-
env:
8-
LT_USERNAME: ${{ secrets.LT_USERNAME }}
9-
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
10-
GRID_HOST: ${{ secrets.GRID_HOST }}
11-
12-
jobs:
13-
SmartUI-Gihub-Action:
14-
name: Execute SmartUI Test with Github App Integration
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v1
18-
19-
- name: Create commit status
20-
run: |
21-
API_HOST=https://api.github.com
22-
# Check out the PR branch
23-
git checkout $GITHUB_HEAD_REF
24-
# Get the commit ID of the last commit
25-
COMMIT_ID=$(git rev-parse HEAD)
26-
echo "Commit ID of PR: $COMMIT_ID"
27-
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
28-
echo "GITHUB_URL: $GITHUB_URL"
29-
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV
30-
31-
- name: Install Dependencies
32-
run: npm install
33-
34-
- name: Execute Test
35-
run: npm test
36-
37-
- name: Execute Multiple tests
38-
run: npm run multiple
1+
name: Quality Checks
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
env:
8+
LT_USERNAME: ${{ secrets.LT_USERNAME }}
9+
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
10+
GRID_HOST: ${{ secrets.GRID_HOST }}
11+
12+
jobs:
13+
SmartUI-Gihub-Action:
14+
name: Execute SmartUI Test with Github App Integration
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
19+
- name: Create commit status
20+
run: |
21+
API_HOST=https://api.github.com
22+
# Check out the PR branch
23+
git checkout $GITHUB_HEAD_REF
24+
# Get the commit ID of the last commit
25+
COMMIT_ID=$(git rev-parse HEAD)
26+
echo "Commit ID of PR: $COMMIT_ID"
27+
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
28+
echo "GITHUB_URL: $GITHUB_URL"
29+
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV
30+
31+
- name: Install Dependencies & Execute tests
32+
run: |
33+
cd hooks
34+
npm install
35+
npm test

sdk/.github/workflows/ci.yml renamed to .github/workflows/SDK-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
- name: Install Dependencies
2424
run: |
2525
npm i @lambdatest/smartui-cli
26+
2627
- name: Execute NodeJS Wrapper
2728
run: |
29+
cd sdk
30+
npm i
2831
npx smartui --version
2932
npx smartui config:create smartui-web.json
3033
npx smartui --config smartui-web.json exec -- npm run smartui-cloud

hooks/package-lock.json

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)