-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (44 loc) · 1.14 KB
/
e2e-test.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
name: E2E Tests
on:
pull_request:
branches: [dev, main]
jobs:
e2e-test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0.39
env:
MYSQL_ROOT_PASSWORD: userfeedback
MYSQL_DATABASE: e2e
MYSQL_USER: userfeedback
MYSQL_PASSWORD: userfeedback
TZ: UTC
ports:
- 13307:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
smtp:
image: rnwood/smtp4dev:v3
ports:
- 5080:80
- 25:25
- 143:143
# opensearch:
# image: opensearchproject/opensearch:2.4.1
# ports:
# - 9200:9200
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build and run
run: |
docker compose -f "./docker/docker-compose.e2e.yml" up -d
- name: Setup e2e test
run: |
cd apps/e2e
npx corepack enable
pnpm install --frozen-lockfile
pnpm playwright install
- name: Run e2e tests
run: |
npm run test:e2e