-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (43 loc) · 1.44 KB
/
(client) test-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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: (get-p-client) Run e2e Test
on:
workflow_dispatch:
pull_request:
branches: ["main", "release"]
workflow_run:
workflows: ["(get-p-client) Compile & Linting", "(get-p-client) Run Unit, Integration Tests"]
types: completed
jobs:
setup-e2e:
runs-on: self-hosted
steps:
- name: Checkout Backend Code
uses: actions/checkout@v4
with:
repository: get-p/get-p-backend
ref: develop
e2e:
runs-on: self-hosted
steps:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 22
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Yarn Package Manager
run: npm install -g yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build get-p-design system
run: yarn design build
- name: Change Directory to get-p-client
run: cd get-p-client
- name: Setup Environment Variables
run: |
touch .env
echo VITE_API_BASE_URL=${{secrets.VITE_API_BASE_URL}} >> .env
cd ..
- name: Build
run: yarn client build
- name: Run e2e Tests
run: yarn client test:e2e:ci