Skip to content

Commit

Permalink
Merge pull request #106 from FreakPeople/#test_ci
Browse files Browse the repository at this point in the history
#test ci
  • Loading branch information
Jeongjjuna authored Jun 28, 2024
2 parents ca42962 + 6a7db29 commit f361a7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ on:
jobs:
Run_Test:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: devtoon_db
MYSQL_USER: local_user
MYSQL_PASSWORD: local_password
ports:
- 3307:3306

steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -23,15 +35,8 @@ jobs:
mkdir -p src/test/resources
echo "${{ secrets.APPLICATION_TEST_YML }}" | base64 --decode > src/test/resources/application.yml
- name: setup docker-compose.yaml
run: |
echo "${{ secrets.DOCKER_COMPOSE_YAML }}" | base64 --decode > docker-compose.yml
- name: test db setup(with docker)
run: docker-compose up -d

- name: make executable gradlew
run: chmod +x ./gradlew

- name: run test
run: ./gradlew clean test
run: ./gradlew clean test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# 데브툰 프로젝트

0 comments on commit f361a7a

Please sign in to comment.