## Description Example of a successful pass: https://github.com/appsmithorg/appsmith/actions/runs/10321826794/job/28575617540 ## Automation /ok-to-test tags="" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Streamlined GitHub Actions workflow for testing Storybook by consolidating Playwright installation and removing redundant steps. - Enhanced clarity and efficiency of the testing process. - **Style** - Updated button component styles by disabling rounded corners, reflecting a potential shift in design strategy. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: "Storybook Tests"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release
|
|
paths:
|
|
- "app/client/packages/design-system/**"
|
|
- "app/client/packages/storybook/**"
|
|
pull_request:
|
|
paths:
|
|
- "app/client/packages/design-system/**"
|
|
- "app/client/packages/storybook/**"
|
|
|
|
jobs:
|
|
storybook-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout PR if pull_request event
|
|
if: github.event_name == 'pull_request'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
|
|
|
- name: Checkout PR if push event
|
|
if: github.event_name == 'push'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ref: release
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: app/client/package.json
|
|
|
|
- name: Install Dependencies
|
|
working-directory: ./app/client/packages/storybook
|
|
run: |
|
|
yarn install --immutable
|
|
npx playwright install --with-deps
|
|
|
|
- name: Storybook Tests
|
|
working-directory: ./app/client/packages/storybook
|
|
run: |
|
|
yarn build-storybook
|
|
yarn test-storybook:ci
|