-
Notifications
You must be signed in to change notification settings - Fork 10
64 lines (50 loc) · 1.69 KB
/
e2e-tests.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-tests:
name: Run E2E Tests with TestCafe
runs-on: ubuntu-latest
strategy:
matrix:
host-app-version: [ "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.9.2", "0.10.0","0.10.1", "0.10.2","0.10.3","0.10.4", "latest" ]
guest-app-version: [ "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.9.2", "0.10.0","0.10.1", "0.10.2","0.10.3","0.10.4", "latest" ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Adjust this as per project requirements
- name: Install Dependencies for Host App
working-directory: e2e/host-app
run: |
npm install @adobe/uix-host-react@${{ matrix.host-app-version }}
npm install
- name: Install Dependencies for Guest App
working-directory: e2e/guest-app
run: |
npm install @adobe/uix-guest@${{ matrix.guest-app-version }}
npm install
- name: Start Host App
working-directory: e2e/host-app
run: |
npm start &
- name: Start Guest App
working-directory: e2e/guest-app
run: |
npm start &
- name: Wait for Applications to be Ready
run: |
echo "Waiting for services to start..."
sleep 10 # Adjust the time based on how long the apps take to start
- name: Run E2E Tests with TestCafe
working-directory: e2e/e2e-tests
run: |
npm install
npm test