Skip to content

Test #18

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Test #18

Show file tree
Hide file tree
Changes from all 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
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ jobs:
name: Execute Storybook build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Find Last CommitId
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 "Last 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: Find Last CommitId
# 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 "Last 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: Check directory
run: ls
- name: Install Dependencies
run: |
npm install
Expand Down
20 changes: 20 additions & 0 deletions .smartui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"storybook": {
"browsers": [
"chrome",
"firefox",
"safari",
"edge"
],
"viewports": [
[
1920,
1080
]
],
"waitForTimeout": 2500,
"include": [],
"exclude": [],
"customViewports": []
}
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Installation

1. Clone this repository
1. Clone this repositor y
```
git clone https://github.com/LambdaTest/smartui-storybook-sample
git clone https://github.com/LambdaTest/smartui-stor ybook-sample
```

2. Change directory to the downloaded git repo and install packages
2. Change directory to the download ed git repo and install packages
```
npm install
```
Expand All @@ -17,7 +17,7 @@
npm run storybook
```

## Running SmartUI storybook tests on a Docker container.


1. Clone this repository
```
Expand Down