-
Notifications
You must be signed in to change notification settings - Fork 12
59 lines (49 loc) · 1.25 KB
/
e2e.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: e2e
on:
push:
workflow_dispatch:
env:
TZ: 'Asia/Tokyo'
jobs:
run-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: cache1
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('./yarn.lock') }}
- name: cache2
uses: actions/cache@v3
with:
path: |
storybook/node_modules
key: ${{ runner.os }}-${{ hashFiles('./storybook/yarn.lock') }}
- name: install
run: |
yarn install
npx playwright install --with-deps
- name: build
run: |
cd storybook
yarn install
yarn run build
- name: run server
run: |
python -m http.server 5233 --directory "${{ github.workspace }}/storybook/storybook-static" &
- name: e2e test
run: yarn e2e
- uses: actions/upload-artifact@v4
with:
name: playwright-results
path: test-results