Skip to content

Commit 61a8929

Browse files
authored
Update demo project (#2899)
* try updated demo * update demo project * split e2e tests out into new action (unit and integration tests messing with submodule)
1 parent 97bbf03 commit 61a8929

File tree

3 files changed

+59
-20
lines changed

3 files changed

+59
-20
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ jobs:
2020
fetch-depth: 0
2121
submodules: true
2222

23-
- name: Setup Python environment
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: '3.9'
27-
cache: 'pip'
28-
2923
- name: Setup Node.js environment
3024
uses: actions/setup-node@v3
3125
with:
@@ -63,16 +57,3 @@ jobs:
6357
storybookBuildDir: 'webview/storybook-static'
6458
exitOnceUploaded: true
6559
autoAcceptChanges: 'main'
66-
67-
- name: Test E2E
68-
uses: GabrielBB/xvfb-action@v1
69-
with:
70-
run: yarn test:e2e
71-
options: '-screen 0 1600x1200x24'
72-
- uses: actions/upload-artifact@v3
73-
if: failure()
74-
with:
75-
name: screenshots
76-
path: |
77-
extension/src/test/e2e/screenshots
78-
extension/src/test/e2e/logs
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: End To End Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
concurrency:
9+
group: end-to-end-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
suite:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 20
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
submodules: true
22+
23+
- name: Setup Python environment
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.9'
27+
cache: 'pip'
28+
29+
- name: Setup Node.js environment
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: '16'
33+
cache: 'yarn'
34+
35+
- name: Turbo cache
36+
if: ${{ github.ref_name != 'main' }}
37+
id: turbo-cache
38+
uses: actions/cache@v3
39+
with:
40+
path: node_modules/.cache/turbo
41+
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
42+
restore-keys: |
43+
turbo-${{ github.job }}-${{ github.ref_name }}-
44+
45+
- run: yarn run install-frozen-lockfile
46+
47+
- name: Test E2E
48+
uses: GabrielBB/xvfb-action@v1
49+
with:
50+
run: yarn test:e2e
51+
options: '-screen 0 1600x1200x24'
52+
- uses: actions/upload-artifact@v3
53+
if: failure()
54+
with:
55+
name: screenshots
56+
path: |
57+
extension/src/test/e2e/screenshots
58+
extension/src/test/e2e/logs

0 commit comments

Comments
 (0)