From 9f51c07acb91c1969de0741058874a21eaa67e60 Mon Sep 17 00:00:00 2001 From: MingyeomKim <67851124+MingyeomKim@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:14:31 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Publish=20Unit=20Test=20Results=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 19 +++++++++++++++++-- .github/workflows/deploy.yml | 10 ++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88a9c2b..1344ec1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + + # 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 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1c755df..3c126ca 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: