Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the CI workflow file for SDK & Hooks sample update #27

Merged
merged 13 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 35 additions & 38 deletions .github/workflows/ci.yml → .github/workflows/LThooks-ci.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
name: Quality Checks
on:
pull_request:
branches:
- main

env:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
GRID_HOST: ${{ secrets.GRID_HOST }}

jobs:
SmartUI-Gihub-Action:
name: Execute SmartUI Test with Github App Integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Create commit status
run: |
API_HOST=https://api.github.com
# Check out the PR branch
git checkout $GITHUB_HEAD_REF
# Get the commit ID of the last commit
COMMIT_ID=$(git rev-parse HEAD)
echo "Commit ID of PR: $COMMIT_ID"
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
echo "GITHUB_URL: $GITHUB_URL"
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV

- name: Install Dependencies
run: npm install

- name: Execute Test
run: npm test

- name: Execute Multiple tests
run: npm run multiple
name: Quality Checks
on:
pull_request:
branches:
- main

env:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
GRID_HOST: ${{ secrets.GRID_HOST }}

jobs:
SmartUI-Gihub-Action:
name: Execute SmartUI Test with Github App Integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Create commit status
run: |
API_HOST=https://api.github.com
# Check out the PR branch
git checkout $GITHUB_HEAD_REF
# Get the commit ID of the last commit
COMMIT_ID=$(git rev-parse HEAD)
echo "Commit ID of PR: $COMMIT_ID"
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
echo "GITHUB_URL: $GITHUB_URL"
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV

- name: Install Dependencies & Execute tests
run: |
cd hooks
npm install
npm test
33 changes: 33 additions & 0 deletions .github/workflows/SDK-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: NodeJS SDK Wrapper CI
on:
pull_request:
branches:
- main
workflow_dispatch:

env:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
PROJECT_TOKEN: ${{ secrets.PROJECT_TOKEN }}
LT_SDK_DEBUG: true
SMARTUI_DEBUG: true

jobs:
smartui-nodejs-sdk:
name: Execute NodeJS sdk build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install Dependencies
run: |
npm i @lambdatest/smartui-cli

- name: Execute NodeJS Wrapper
run: |
cd sdk
npm i
npx smartui --version
npx smartui config:create smartui-web.json
npx smartui --config smartui-web.json exec -- npm run smartui-cloud
222 changes: 0 additions & 222 deletions hooks/package-lock.json

This file was deleted.

Loading