-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CHORE] add ci_gradle.yml
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 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,51 @@ | ||
name: Java CI with Gradle in smRt store | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "main","develop" ] | ||
|
||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
## Gradle Wrapper 권한 부여 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x voicepocket/gradlew | ||
|
||
## Gradle Test를 실행한다 | ||
- name: Test with Gradle | ||
run: | | ||
cd voicepocket | ||
ls -alh | ||
./gradlew --info test | ||
## Test 후 Report 생성 | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: 'voicepocket/build/test-results/test/TEST-*.xml' | ||
|
||
## 오류가 나는 부분에 코멘트를 달아줌 | ||
- name: add comments to a pull request | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: 'voicepocket/build/test-results/test/TEST-*.xml' | ||
|