Skip to content

Commit 98c9ce9

Browse files
committed
Try Lost Pixel
1 parent 2bbe8ee commit 98c9ce9

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/vrt.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Visual regression testing
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
name: Lost Pixel
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Setup Node
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 16.x
17+
cache: 'yarn'
18+
19+
- name: Install dependencies
20+
run: yarn install
21+
22+
- name: Build next
23+
run: yarn build-storybook
24+
25+
- name: Lost Pixel
26+
uses: lost-pixel/lost-pixel@next
27+
env:
28+
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}

lostpixel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
storybookShots: {
3+
storybookUrl: './storybook-static',
4+
},
5+
lostPixelProjectId: 'cld08suck0455ke0vt3werogj',
6+
apiKey: process.env.LOST_PIXEL_API_KEY,
7+
};

0 commit comments

Comments
 (0)