Skip to content

Commit f336b8d

Browse files
committed
Chore: Gradle 캐시 설정 추가
1 parent 8aa6312 commit f336b8d

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

.github/workflows/develop_branch.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ jobs:
1414
- name: check out repository
1515
uses: actions/checkout@v4
1616

17-
- name: Decode Keystore
17+
- name: Decode Keystore & Generate local.properties
1818
env:
1919
RELEASE_STORE_BASE_64: ${{ secrets.RELEASE_STORE_BASE_64 }}
20-
run: |
21-
echo $RELEASE_STORE_BASE_64 > encoded_keystore.txt
22-
base64 --decode encoded_keystore.txt > release.jks
23-
24-
- name: Generate local.properties
25-
env:
2620
KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
2721
KAKAO_REST_API_KEY: ${{ secrets.KAKAO_REST_API_KEY }}
2822
BITNAGIL_DEV_URL: ${{ secrets.BITNAGIL_DEV_URL }}
@@ -31,6 +25,11 @@ jobs:
3125
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
3226
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
3327
run: |
28+
# Keystore Decoding
29+
echo $RELEASE_STORE_BASE_64 > encoded_keystore.txt
30+
base64 --decode encoded_keystore.txt > release.jks
31+
32+
# Generate local.properties
3433
echo "kakao.native.app.key=$KAKAO_NATIVE_APP_KEY" >> local.properties
3534
echo "kakao.rest.api.key=$KAKAO_REST_API_KEY" >> local.properties
3635
echo "bitnagil.dev.url=$BITNAGIL_DEV_URL" >> local.properties
@@ -45,13 +44,11 @@ jobs:
4544
with:
4645
java-version: '17'
4746
distribution: 'temurin'
48-
cache: gradle
4947

50-
- name: Run ktlint
51-
run: ./gradlew ktlintCheck
52-
53-
- name: Run unit tests
54-
run: ./gradlew testDebugUnitTest
48+
- name: Setup Gradle
49+
uses: gradle/actions/setup-gradle@v4
50+
with:
51+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
5552

56-
- name: Build with Gradle
57-
run: ./gradlew assembleDebug
53+
- name: Build and Verify
54+
run: ./gradlew ktlintCheck testDebugUnitTest assembleDebug

0 commit comments

Comments
 (0)