Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] 프로젝트 세팅 일부 수정 #23

Merged
merged 3 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.3
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=3

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: create secret config file
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION_TEST }}" > ./application.yml

- name: build with gradle
run: |
chmod +x gradlew
./gradlew clean build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ out/

### VS Code ###
.vscode/

application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,17 @@ spring:
resources:
add-mappings: false # Disable static resource mapping (For NoHandlerFoundException)
datasource:
url: jdbc:mysql://localhost:3306/TelePigeon
username: root
password:
url: ${mysql_url}
username: ${mysql_username}
password: ${mysql_password}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create-drop
ddl-auto: none
properties:
hibernate:
show_sql: true
format_sql: true
highlight_sql: true
use_sql_comments: true
dialect: org.hibernate.dialect.MySQL8Dialect
data:
redis:
host: localhost
port: 6379
host: ${redis_host}
port: ${redis_port}
Loading