-
-
Notifications
You must be signed in to change notification settings - Fork 625
38 lines (36 loc) · 1.08 KB
/
run-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Storybook Tests
on: [push, pull_request]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: restore lerna
uses: actions/cache@v3
id: cache-lerna
with:
path: |
**/node_modules
~/.cache/ms-playwright
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.cache-lerna.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Run Storybook tests
run: yarn test:ci
working-directory: ./packages/react-moveable
- name: Run Original Storybok
if: ${{ failure() }}
run: yarn test:fail-ci
working-directory: ./packages/react-moveable
- name: Archive Failed Artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: failed snapshot
path: packages/react-moveable/__snapshots__