-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f35ebec
commit 0a6dac3
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
name: CI | ||
# name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop" ] | ||
# on: | ||
# pull_request: | ||
# branches: [ "develop" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-22.04 | ||
|
||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
# steps: | ||
# - name: checkout | ||
# uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
# - 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 | ||
# - name: create application-secret.yml | ||
# run: | | ||
# # create application-secret.yml | ||
# cd ./src/main/resources | ||
|
||
# application-secret.yml 파일 생성 | ||
touch ./application-secret.yml | ||
# # application-secret.yml 파일 생성 | ||
# touch ./application-secret.yml | ||
|
||
# GitHub-Actions 에서 설정한 값을 application-secret.yml 파일에 쓰기..git | ||
echo "${{ secrets.CI_APPLICATION }}" >> ./application-secret.yml | ||
# # GitHub-Actions 에서 설정한 값을 application-secret.yml 파일에 쓰기..git | ||
# echo "${{ secrets.CI_APPLICATION }}" >> ./application-secret.yml | ||
|
||
# application.yml 파일 확인 | ||
cat ./application-secret.yml | ||
shell: bash | ||
# # application.yml 파일 확인 | ||
# cat ./application-secret.yml | ||
# shell: bash | ||
|
||
- name: build | ||
run: | | ||
chmod +x gradlew | ||
./gradlew build -x test | ||
shell: bash | ||
# - name: build | ||
# run: | | ||
# chmod +x gradlew | ||
# ./gradlew build -x test | ||
# shell: bash |