Create android_build.yml
This commit is contained in:
committed by
GitHub Enterprise
parent
b274249567
commit
ca947fec90
27
.github/workflows/android_build.yml
vendored
Normal file
27
.github/workflows/android_build.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Android Build CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ feature/gitactions-build ]
|
||||
pull_request:
|
||||
branches: [ feature/gitactions-build ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: [ self-hosted ]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: set up JDK 11
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v2
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Unit Test
|
||||
run: ./gradlew testDebugUnitTest
|
||||
Reference in New Issue
Block a user