File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
+
15
+ services :
16
+ mysql :
17
+ image : mysql:latest
18
+ env :
19
+ MYSQL_ROOT_PASSWORD : password
20
+ MYSQL_DATABASE : test
21
+ MYSQL_USER : root
22
+ MYSQL_PASSWORD : password
23
+ ports :
24
+ - 3306:3306
25
+ options : >-
26
+ --health-cmd="mysqladmin ping"
27
+ --health-interval=10s
28
+ --health-timeout=5s
29
+ --health-retries=3
30
+
14
31
steps :
15
32
- name : Checkout repository
16
33
uses : actions/checkout@v4
@@ -32,11 +49,18 @@ jobs:
32
49
33
50
- name : DevServer Backend CI
34
51
if : steps.changes.outputs.backend == 'true'
52
+ env :
53
+ DATABASE_HOST : 127.0.0.1
54
+ DATABASE_PORT : 3306
55
+ DATABASE_USER : root
56
+ DATABASE_PASSWORD : password
57
+ DATABASE_NAME : test
35
58
run : |
36
59
cd ./backend
37
60
npm install
38
61
npm run build
39
62
NODE_ENV=CI npm run test
63
+ NODE_ENV=CI npm run test:e2e
40
64
cd ..
41
65
42
66
- name : DevServer Frontend CI
You can’t perform that action at this time.
0 commit comments