remove local.properties #1
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: | |
- main | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
# - name: Setup Android SDK | |
# uses: android-actions/setup-android@v3 | |
# Cache Gradle dependencies and Gradle Wrapper | |
- name: Setup Gradle Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Upload app to AppSweep with Gradle | |
env: | |
APPSWEEP_API_KEY: ${{ secrets.APPSWEEP_API_KEY }} | |
run: ./gradlew uploadToAppSweepRelease | |
- name: Run Linters and Test | |
run: ./gradlew check | |
- name: Upload Reports | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Test-Reports | |
path: app/build/reports | |
if: always() | |