냉장고 칸별 재료 목록보기 추가 (#57) #23
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 CI | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
paths: [ 'Android/**' ] | |
pull_request: | |
branches: | |
- develop | |
- main | |
paths: 'Android/**' | |
defaults: | |
run: | |
working-directory: Android | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: zulu | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: add local.properties | |
run: | | |
echo base_url=\"$${{ secrets.ANDROID_BASE_URL }}\" >> ./local.properties | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Run ktlint | |
run: ./gradlew ktlintCheck | |
- name: Run unit tests | |
run: ./gradlew testDebugUnitTest | |
- name: Build assemble release apk | |
run: ./gradlew assembleRelease |