Skip to content

Commit ada800c

Browse files
committed
Revert "ci: remove workflow until storybook builds"
This reverts commit b5a8768.
1 parent 9fe80f1 commit ada800c

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/chromatic.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 }}

0 commit comments

Comments
 (0)