From 7fd53d50bf6d73abed4851da5d0b60f7a69def33 Mon Sep 17 00:00:00 2001 From: smg0725 Date: Wed, 3 Jul 2024 00:06:53 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20CI.yml=ED=8C=8C=EC=9D=BC=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..59603be9 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,41 @@ + name: CI + + on: + pull_request: + branches: [ "develop" ] + + jobs: + build: + runs-on: ubuntu-22.04 + + + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '17' + + - name: create application-secret.yml + run: | + # create application-secret.yml + cd ./src/main/resources + + # application-secret.yml 파일 생성 + touch ./application-secret.yml + + # GitHub-Actions 에서 설정한 값을 application-secret.yml 파일에 쓰기..git + echo "${{ secrets.CI_APPLICATION_SECRET }}" >> ./application-secret.yml + + # application.yml 파일 확인 + cat ./application-secret.yml + shell: bash + + - name: build + run: | + chmod +x gradlew + ./gradlew build -x test + shell: bash \ No newline at end of file