Skip to content

Commit

Permalink
[Feat] : ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
wellbeing-dough committed Nov 29, 2023
1 parent da8c236 commit 83eb4d2
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
#
# - name: Setup MySQL #mysql 설정
# uses: samin/mysql-action@v1
# with:
# host port: 3306
# container port: 3306
# mysql database: sh_db
# mysql user: 'admin'
# mysql password: 'root'
# character set server: 'utf8'

- name: Setup MySQL #mysql 설정
uses: samin/mysql-action@v1
with:
host port: 3306
container port: 3306
mysql database: sh_db
mysql user: 'admin'
mysql password: 'root'
character set server: 'utf8'

- name: Set up JDK 11
uses: actions/setup-java@v3
Expand Down
90 changes: 45 additions & 45 deletions src/main/resources/application-ci.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
#spring:
# datasource:
# url: jdbc:mysql://localhost:3306/studyHub;
# driver-class-name: com.mysql.cj.jdbc.Driver
# username: admin
# password: root
# sql:
# init:
# mode: always
# schema-locations: classpath:schema.sql
# jpa:
# open-in-view: true
# hibernate:
# ddl-auto:
# naming:
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# show-sql: true
# properties:
# '[hibernate.format_sql]': true
#
#
# mail:
# host: smtp.gmail.com
# port: 587
# username: [email protected]
# password: ${MAIL_PASSWORD}
# properties:
# mail:
# smtp:
# auth: true
# starttls:
# enable: true
#
#logging:
# level:
# '[org.springframework.boot.web]': DEBUG
# org:
# springframework:
# cache: DEBUG
#
#
## debug info warn error
#
#jwt:
# secret: ${JWT_SECRET}
spring:
datasource:
url: jdbc:mysql://localhost:3306/sh_db;
driver-class-name: com.mysql.cj.jdbc.Driver
username: admin
password: root
sql:
init:
mode: always
schema-locations: classpath:schema.sql
jpa:
open-in-view: true
hibernate:
ddl-auto:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
show-sql: true
properties:
'[hibernate.format_sql]': true


mail:
host: smtp.gmail.com
port: 587
username: [email protected]
password: ${MAIL_PASSWORD}
properties:
mail:
smtp:
auth: true
starttls:
enable: true

logging:
level:
'[org.springframework.boot.web]': DEBUG
org:
springframework:
cache: DEBUG


# debug info warn error

jwt:
secret: ${JWT_SECRET}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

@RepositoryTest
@ActiveProfiles("dev")
@ActiveProfiles("ci")
class CommentRepositoryTest {

@Autowired
Expand Down

0 comments on commit 83eb4d2

Please sign in to comment.