diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91a77268..f34b8f34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.smartui.json b/.smartui.json new file mode 100644 index 00000000..ea2dfc25 --- /dev/null +++ b/.smartui.json @@ -0,0 +1,20 @@ +{ + "storybook": { + "browsers": [ + "chrome", + "firefox", + "safari", + "edge" + ], + "viewports": [ + [ + 1920, + 1080 + ] + ], + "waitForTimeout": 2500, + "include": [], + "exclude": [], + "customViewports": [] + } +} diff --git a/README.md b/README.md index 56b18f10..54724500 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -17,7 +17,7 @@ npm run storybook ``` -## Running SmartUI storybook tests on a Docker container. + 1. Clone this repository ```