-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
name: Continuous Integration | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
test: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
java-version: 11 | ||
- name: Build debug APK | ||
run: ./gradlew assembleDebug | ||
|
||
test: | ||
name: Unit Tests | ||
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: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
java-version: 11 | ||
- name: Run unit tests | ||
run: ./gradlew test | ||
- name: Android Test Report | ||
uses: asadmansr/[email protected] | ||
|
||
# androidTest: | ||
# name: Instrumented Tests | ||
# runs-on: macOS-latest | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - name: Set up JDK 11 | ||
# uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: 11 | ||
# - name: Run Instrumented Tests | ||
# uses: reactivecircus/android-emulator-runner@v1 | ||
# with: | ||
# api-level: 29 | ||
# arch: x86 | ||
# disable-animations: true | ||
# script: ./gradlew connectedAndroidTest --stacktrace | ||
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: Build the app | ||
run: bash ./gradlew build --stacktrace |