Skip to content

feat: Update default color ModalHeading DrawerHeading (#1743) #736

feat: Update default color ModalHeading DrawerHeading (#1743)

feat: Update default color ModalHeading DrawerHeading (#1743) #736

name: "Visual Tests Main"
on:
push:
paths:
- "packages/**"
branches:
- main
jobs:
install-cache:
name: Install and cache dependencies
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore(release): version packages')"
steps:
- run: echo ${{ github.triggering_actor }}
- name: Checkout Commit
uses: actions/checkout@v4
- name: Cache yarn dependencies
uses: actions/cache@v3
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-v1
- name: Install dependencies if cache invalid
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
visual-tests:
name: Run visual tests with Chromatic on Main
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore(release): version packages')"
needs: install-cache
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to retrieve git history
- name: Restore yarn dependencies
uses: actions/cache@v3
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-v1
- name: Build packages
run: yarn build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: "main"
exitOnceUploaded: true