Skip to content

chore(deps): bump rollup from 4.19.0 to 4.23.0 #9633

chore(deps): bump rollup from 4.19.0 to 4.23.0

chore(deps): bump rollup from 4.19.0 to 4.23.0 #9633

name: "Visual Tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
paths:
- "packages/**"
jobs:
install-cache:
name: Install and cache dependencies
if: ${{ github.triggering_actor != 'dependabot[bot]' && contains(github.event.pull_request.draft, false) }}
runs-on: ubuntu-latest
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
runs-on: ubuntu-latest
if: contains(github.event.pull_request.draft, false)
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