-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BE] chore: CI 구축 #87
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f428a26
chore: CICD 구축
ehtjsv2 d4861cf
chore: 어떤 패키지든 트리거 되도록 테스트
ehtjsv2 ebf1673
chore: gradlew권한 부여
ehtjsv2 bfbfc5a
chore: test 결과 위치 수정
ehtjsv2 ba59e7f
chore: test-result 찾는 패키지 명확하게 수정
ehtjsv2 a74b6cc
chore: test-result 패키지 위치 수정
ehtjsv2 ed73bec
chore: backend폴더에 대한 수정만 트리거 되도록 수정
ehtjsv2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,67 @@ | ||
name: backend-ci | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
paths: | ||
- 'backend/**' | ||
pull_request: | ||
branches: [ "develop" ] | ||
paths: | ||
- 'backend/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: ./backend | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
|
||
# needed unless run with comment_mode: off | ||
pull-requests: write | ||
|
||
# only needed for private repository | ||
contents: read | ||
|
||
# only needed for private repository | ||
issues: read | ||
|
||
# required by download step to access artifacts API | ||
actions: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'corretto' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: 8.1.1 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle Wrapper | ||
run: ./gradlew build | ||
|
||
- name: 테스트 결과를 PR에 코멘트로 등록합니다 | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
if: always() | ||
with: | ||
files: './backend/build/test-results/test/TEST-*.xml' | ||
|
||
|
||
- name: 실패 테스트결과의 원인을 Report 합니다 | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: './backend/build/test-results/test/TEST-*.xml' | ||
token: ${{ github.token }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
띄어쓰기 두 줄 되어있는거 불~편 하네요