Skip to content

Commit

Permalink
ci: Publish Unit Test Results 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingyum-Kim committed Aug 8, 2023
1 parent d5cbec9 commit 9f51c07
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,22 @@ jobs: # defining jobs, executed in this workflows

- name: Gradle Authorization
run: chmod +x gradlew

# Gradle run
- name: Gradle Build Run
run: ./gradlew build
- name: Run tests
run: ./gradlew test

# Gradle test
- name: Test with Gradle
run: ./gradlew --info test
# Publish Unit Test Results
- nane: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: build/test-results/**/*.xml
- name: Cleanup Gradle Cache
if: ${{ always() }}
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ jobs:
steps:
- uses: actions/checkout@v3

# Caching Gradle
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties')
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 9f51c07

Please sign in to comment.