chore(deps-dev): bump ts-jest from 28.0.8 to 29.2.5 #9635
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |