Skip to content

Commit

Permalink
Merge pull request #12 from iHangbot/config/ci
Browse files Browse the repository at this point in the history
chore: gradle.yml 주석 삭제 및 build.gradle test 삭제
  • Loading branch information
Jimin0304 authored Aug 2, 2023
2 parents bd95522 + 9807b17 commit 0fef678
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 51 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
## This workflow uses actions that are not certified by GitHub.
## They are provided by a third-party and are governed by
## separate terms of service, privacy policy, and support
## documentation.
## This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
## For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
#
#name: Java CI with Gradle
#
#on:
# push:
# branches: [ "*" ]
# pull_request:
# branches: [ "develop" ]
#
#permissions:
# contents: read
#
#jobs:
# build:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# - name: Setup MySQL
# uses: samin/mysql-action@v1
# with:
# character set server: 'utf8'
# mysql database: 'iHangbot'
# mysql user: ${{ secrets.DATASOURCE_USERNAME }}
# mysql password: ${{ secrets.DATASOURCE_PASSWORD }}
# - name: Run chmod to make gradlew executable
# run: chmod +x ./gradlew
# - name: Build with Gradle
# uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
# with:
# arguments: build
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "develop" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'iHangbot'
mysql user: ${{ secrets.DATASOURCE_USERNAME }}
mysql password: ${{ secrets.DATASOURCE_PASSWORD }}
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@ dependencies {
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.0'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.json:json:20220924'
}

test {
useJUnitPlatform()
}
5 changes: 1 addition & 4 deletions src/main/resources/application-datasource.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${DATASOURCE_URL}
username: ${DATASOURCE_USERNAME}
password: ${DATASOURCE_PASSWORD}
# url: jdbc:mysql://127.0.0.1:3306/iHangbot
# username: root
# password: 1234
driver-class-name: com.mysql.cj.jdbc.Driver

0 comments on commit 0fef678

Please sign in to comment.