Skip to content

Commit 7ef3895

Browse files
committed
chore: add snapshot testing
1 parent 4838f38 commit 7ef3895

File tree

67 files changed

+1543
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1543
-26
lines changed

.github/workflows/pipeline.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,42 @@ jobs:
229229
if-no-files-found: error
230230
path: build
231231

232+
loki-storybook:
233+
runs-on: "ubuntu-latest"
234+
needs: [storybook]
235+
steps:
236+
- uses: actions/checkout@v1
237+
238+
- name: Use Node.js 16
239+
uses: actions/setup-node@v1
240+
with:
241+
node-version: "16.x"
242+
243+
- name: Get yarn cache directory path
244+
id: yarn-cache-dir-path
245+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
246+
247+
- uses: actions/cache@v2
248+
with:
249+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
250+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
251+
restore-keys: |
252+
${{ runner.os }}-yarn-
253+
254+
- name: Install
255+
env:
256+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
257+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
258+
run: yarn --immutable
259+
260+
- name: Fetch storybook build
261+
uses: actions/download-artifact@v2
262+
with:
263+
name: storybook-static
264+
265+
- name: Test
266+
run: yarn loki:test:ci
267+
232268
build-and-test-app:
233269
runs-on: ${{ matrix.os }}
234270
env:

.loki/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
current
2+
difference
26.3 KB
26.3 KB
26.3 KB
50.7 KB
50.5 KB
6.85 KB
50.2 KB
11.7 KB

0 commit comments

Comments
 (0)