Skip to content

Commit 47325c8

Browse files
authored
tmp
1 parent 9564a94 commit 47325c8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/dev.ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ on:
1111
jobs:
1212
build:
1313
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+
1431
steps:
1532
- name: Checkout repository
1633
uses: actions/checkout@v4
@@ -32,11 +49,18 @@ jobs:
3249

3350
- name: DevServer Backend CI
3451
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
3558
run: |
3659
cd ./backend
3760
npm install
3861
npm run build
3962
NODE_ENV=CI npm run test
63+
NODE_ENV=CI npm run test:e2e
4064
cd ..
4165
4266
- name: DevServer Frontend CI

0 commit comments

Comments
 (0)