Skip to content

[AN-HACK] 상성 기능 구현 #24

[AN-HACK] 상성 기능 구현

[AN-HACK] 상성 기능 구현 #24

name: Android PR Builder
on:
pull_request:
branches: [ an/develop, an/hack/develop ]
jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
# - name: Create Google-Services.json
# env:
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
# run: |
# touch ./app/google-services.json
# echo $GOOGLE_SERVICES >> ./app/google-services.json
# cat ./app/google-services.json
#
- name: Create Local Properties
run: touch local.properties
working-directory: android
# - name: Access Local Properties
# env:
# FUNCH_DEBUG_BASE_URL: ${{ secrets.FUNCH_DEBUG_BASE_URL }}
# STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
# KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
# KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
# STORE_FILE: ${{ secrets.STORE_FILE }}
# run: |
# echo FUNCH_DEBUG_BASE_URL=\"FUNCH_DEBUG_BASE_URL\" >> local.properties
# echo STORE_PASSWORD= $STORE_PASSWORD >> local.properties
# echo KEY_PASSWORD= $KEY_PASSWORD >> local.properties
# echo KEY_ALIAS= $KEY_ALIAS >> local.properties
# echo STORE_FILE= $STORE_FILE >> local.properties
# - name: Create Key Store
# env:
# KEY_STORE_BASE_64: ${{secrets.KEY_STORE_BASE_64}}
# run: |
# echo "$KEY_STORE_BASE_64" | base64 -d > ./funch_key_store.jks
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android
- name: Lint Check
run: ./gradlew ktlintCheck
working-directory: android
- name: run rest
run: ./gradlew test
working-directory: android
- name: Build with Gradle
run: ./gradlew build
working-directory: android