Merge pull request #91 from its-me-debk007/dependabot/gradle/com.goog… #100
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: Run lint checks + perform unit tests + build and upload apk | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "oracle" | |
java-version: 17 | |
- name: Make Gradle executable | |
run: chmod +x ./gradlew | |
- name: lint check | |
run: ./gradlew lintDebug | |
- name: Upload lint check report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lint-results-debug | |
path: app/build/reports/lint-results-debug.html | |
- name: Perform unit tests | |
run: ./gradlew test | |
- name: Upload unit test report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit_test_report | |
path: app/build/reports/tests/testDebugUnitTest/ | |
- name: Build Debug APK | |
run: ./gradlew assembleDebug | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-debug | |
path: app/build/outputs/apk/debug/app-debug.apk |