Skip to content

Commit

Permalink
[ADD] CI.yml파일추가
Browse files Browse the repository at this point in the history
  • Loading branch information
paragon0107 committed Jul 2, 2024
1 parent 7f58f61 commit 7fd53d5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7fd53d5

Please sign in to comment.