-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (37 loc) · 979 Bytes
/
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
name: e2e
on:
push:
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@v3
with:
node-version: "16"
- name: cache
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: install
run: |
yarn install
npx playwright install --with-deps
- name: build
run: yarn run build-storybook
- name: run server
run: |
python -m http.server 5233 --directory "${{ github.workspace }}/storybook-static" &
- name: e2e test
run: yarn e2e
- uses: actions/upload-artifact@v4
with:
name: playwright-results
path: test-results