Skip to content

โœจ [Feature] ํ‚ค์›Œ๋“œ์— ํ•ด๋‹น๋˜๋Š” ํ”„๋žœ์ฐจ์ด์ฆˆ ๋ชฉ๋ก ๋ฐ ์Œ๋ฃŒ ๋ชฉ๋ก ์กฐํšŒ๋ฅผ ๊ตฌํ˜„ํ–ˆ์–ด์š” #45

โœจ [Feature] ํ‚ค์›Œ๋“œ์— ํ•ด๋‹น๋˜๋Š” ํ”„๋žœ์ฐจ์ด์ฆˆ ๋ชฉ๋ก ๋ฐ ์Œ๋ฃŒ ๋ชฉ๋ก ์กฐํšŒ๋ฅผ ๊ตฌํ˜„ํ–ˆ์–ด์š”

โœจ [Feature] ํ‚ค์›Œ๋“œ์— ํ•ด๋‹น๋˜๋Š” ํ”„๋žœ์ฐจ์ด์ฆˆ ๋ชฉ๋ก ๋ฐ ์Œ๋ฃŒ ๋ชฉ๋ก ์กฐํšŒ๋ฅผ ๊ตฌํ˜„ํ–ˆ์–ด์š” #45

Workflow file for this run

name: PR Test
on:
pull_request:
branches: [ develop ] # develop branch์— PR์„ ๋ณด๋‚ผ ๋•Œ ์‹คํ–‰
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'zulu'
# gradle ํŒŒ์ผ ์บ์‹ฑ
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Gradle wrapper ํŒŒ์ผ ์‹คํ–‰ ๊ถŒํ•œ์ฃผ๊ธฐ
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Gradle test๋ฅผ ์‹คํ–‰ํ•œ๋‹ค
- name: Test with Gradle
run: ./gradlew test
# ํ…Œ์ŠคํŠธ ํ›„ Result๋ฅผ ๋ณด๊ธฐ์œ„ํ•ด Publish Unit Test Results step ์ถ”๊ฐ€
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'
- name: If the test fails, register a check comment in the failed code line
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
# gradle ์บ์‹ฑ์„ ์œ„ํ•ด ์ถ”๊ฐ€
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
if: ${{ always() }}
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties