## Description - update node version and appropriate git workflow - added the path to webpack cache folder, this should speed up bundle creation about a minute [Test, build and push Docker Image](https://github.com/appsmithorg/appsmith/actions/runs/8421752151) [Build Client, Server & Run only Cypress](https://github.com/appsmithorg/appsmith/actions/runs/8421752151) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated actions/cache and actions/setup-node to v4 across various workflows for improved caching and Node.js setup. - Modified the `yarn install` command to use `--immutable` flag, enhancing dependency management. - **Documentation** - Updated comments within workflows to include cautionary and important notes, ensuring better clarity. - **Refactor** - Adjusted caching paths and keys for more efficient caching behavior. - Changed Node.js installation to version 20.11.1 in Dockerfile, aligning with the latest version for better performance and security. - **Tests** - Modified assertion in `getCurrentLocationSaga` test to check for the presence of a property, improving test accuracy. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Aman Agarwal <aman@appsmith.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: "Build Storybook - UI Tests with Chromatic"
|
|
|
|
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:
|
|
chromatic-deployment:
|
|
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
|
|
|
|
- name: Publish to Chromatic
|
|
id: chromatic-publish
|
|
uses: chromaui/action@v1
|
|
env:
|
|
CHROMATIC: 1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
workingDir: ./app/client/packages/storybook
|
|
exitOnceUploaded: true
|
|
buildScriptName: "build"
|