Skip to content

Merge pull request #45 from SurajKRB/sign_upload #2

Merge pull request #45 from SurajKRB/sign_upload

Merge pull request #45 from SurajKRB/sign_upload #2

Workflow file for this run

name: AndroidBuild
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Java JDK 11
uses: actions/setup-java@v3.13.0
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: ./gradlew build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: RepDetect.apk
path: app/build/outputs/apk/
test:
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.1
- name: Setup Java JDK 11
uses: actions/setup-java@v3.13.0
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Run unit tests
run: ./gradlew test --stacktrace
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: default
arch: x86
profile: Nexus 6
script: ./gradlew connectedCheck --stacktrace
- name: Upload Reports
uses: actions/upload-artifact@v2
with:
name: Test-Reports
path: app/build/reports
if: always()