-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: truncate 를 통한 테스트 데이터 초기화 (#139) * chore: application.yml 배포환경별 설정 (#139) * fix: ddl-auto 수정 (#139) * fix: application yml 변수 설정 (#139) * feat: 위도, 경도 반환 타입을 Double로 변경 (#139) * infra: 백엔드 CI 작성 (#139) * infra: 백엔드 CI 오류 수정 (#139) * infra: workflow 수정 (#139) * Update backend-dev-cd.yml --------- Co-authored-by: Taeyeon <[email protected]>
- Loading branch information
1 parent
3c00dce
commit 95fc107
Showing
7 changed files
with
84 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ✨ Celuveat Backend CI ✨ | ||
|
||
on: | ||
push: | ||
branches: [ "develop-backend" ] | ||
pull_request: | ||
branches: [ "develop-backend" ] | ||
|
||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
jobs: | ||
backend-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./backend | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: ✨ JDK 17 설정 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: ✨ Gradlew 권한 설정 | ||
run: chmod +x ./gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: ✨ 테스트 진행 | ||
run: ./gradlew test | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: ✨ 테스트 결과 Report | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: ${{ always() }} | ||
with: | ||
files: '**/build/test-results/**/*.xml' | ||
|
||
- name: ✨ 테스트 실패 Comment | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: ✨ Celuveat backend DEV CD ✨ | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop-backend | ||
paths: | ||
- 'backend/**' | ||
|
||
jobs: | ||
deploy-backend: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: ✨ Run Backend Deploy Script | ||
run: | | ||
cd ~ | ||
sudo sh deploy-backend.sh |
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
spring: | ||
datasource: | ||
url: ${DB_URL} | ||
username: ${DB_USERNAME} | ||
password: ${DB_PASSWORD} | ||
driver-class-name: ${DB_DRIVER_CLASS_NAME} | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: validate |
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
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