Change project structure #45
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: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Set up JDK environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: 17 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run local unit tests | |
run: bash ./gradlew test --stacktrace | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Set up JDK environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: 17 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run lint check | |
run: bash ./gradlew lint | |
- name: Upload lint result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lint-results-debug | |
path: app/build/reports/lint-results-debug.html | |
- name: Build the app | |
run: bash ./gradlew build --stacktrace | |
- name: Build debug apk | |
run: bash ./gradlew assembleDebug | |
- name: Upload debug apk | |
uses: actions/upload-artifact@v4 | |
with: | |
name: debug-apk | |
path: app/build/outputs/apk/debug/*.apk |