File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : chromatic
2+
3+ on :
4+ # Temporarily disabled until we can get Storybook to build properly.
5+ # push:
6+ # branches:
7+ # - main
8+ # pull_request:
9+ workflow_dispatch :
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.number || github.sha }}
13+ cancel-in-progress : true
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ chromatic :
20+ name : 📚 Chromatic
21+ runs-on : ubuntu-24.04-arm
22+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
23+
24+ steps :
25+ - name : ☑️ Checkout
26+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+ with :
28+ fetch-depth : 0
29+ ref : ${{ github.event.pull_request.head.ref || github.ref }}
30+
31+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
32+ with :
33+ node-version : lts/*
34+
35+ - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36+ name : 🟧 Install pnpm
37+ with :
38+ cache : true
39+
40+ - name : 📦 Install dependencies
41+ run : pnpm install
42+
43+ - name : 🧪 Run Chromatic Visual Tests
44+ uses : chromaui/action@a8ce9c58f59be5cc7090cadfc8f130fb08fcf0c3 # v15.1.0
45+ with :
46+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
47+ env :
48+ CHROMATIC_BRANCH : ${{ github.event.pull_request.head.ref || github.ref_name }}
49+ CHROMATIC_SHA : ${{ github.event.pull_request.head.sha || github.sha }}
50+ CHROMATIC_SLUG : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments