Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
choyoungwoo9 authored Aug 15, 2024
1 parent 9564a94 commit 47325c8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dev.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
MYSQL_USER: root
MYSQL_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -32,11 +49,18 @@ jobs:

- name: DevServer Backend CI
if: steps.changes.outputs.backend == 'true'
env:
DATABASE_HOST: 127.0.0.1
DATABASE_PORT: 3306
DATABASE_USER: root
DATABASE_PASSWORD: password
DATABASE_NAME: test
run: |
cd ./backend
npm install
npm run build
NODE_ENV=CI npm run test
NODE_ENV=CI npm run test:e2e
cd ..
- name: DevServer Frontend CI
Expand Down

0 comments on commit 47325c8

Please sign in to comment.