style: ktlint #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android PR Builder | ||
on: | ||
pull_request: | ||
branches: [ an/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: | ||
POKE_BASE_URL: ${{ secrets.POKE_BASE_URL }} | ||
# STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | ||
# KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
# KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
# STORE_FILE: ${{ secrets.STORE_FILE }} | ||
run: | | ||
echo POKE_BASE_URL=\"POKE_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 |