Skip to content

Commit

Permalink
test: ci_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongjjuna committed Jun 28, 2024
1 parent 9e1f9f9 commit 6a7db29
Showing 1 changed file with 13 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

0 comments on commit 6a7db29

Please sign in to comment.