Skip to content

Commit 9216dae

Browse files
authored
ci: enable VRT and ART for PRs from forks (#1679)
1 parent 4ed4254 commit 9216dae

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/chromatic.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
chromatic:
1818
name: 📚 Chromatic
1919
runs-on: ubuntu-24.04-arm
20-
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
2120

2221
steps:
2322
- name: ☑️ Checkout
2423
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2524
with:
2625
fetch-depth: 0
27-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
26+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
27+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2828

2929
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3030
with:
@@ -38,10 +38,8 @@ jobs:
3838
- name: 📦 Install dependencies
3939
run: pnpm install
4040

41-
- name: 🧪 Run Chromatic Visual Tests
41+
- name: 🧪 Run Chromatic Visual and Accessibility Tests
4242
uses: chromaui/action@a8ce9c58f59be5cc7090cadfc8f130fb08fcf0c3 # v15.1.0
43-
with:
44-
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
4543
env:
4644
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
4745
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}

chromatic.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"projectToken": "chpt_e46907a72045a1b",
23
"onlyChanged": true,
34
"autoAcceptChanges": "main",
45
"exitZeroOnChanges": false,

0 commit comments

Comments
 (0)