2021-02-21 04:02:20 +00:00
|
|
|
name: Android CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-30 03:41:16 +00:00
|
|
|
- name: set up JDK
|
|
|
|
uses: actions/setup-java@v3
|
2021-02-21 04:02:20 +00:00
|
|
|
with:
|
2022-10-30 03:41:16 +00:00
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: '17'
|
2021-02-21 04:02:20 +00:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
2021-03-12 22:38:44 +00:00
|
|
|
run: ./gradlew assembleDebug assembleDebugAndroidTest assembleDebugUnitTest
|
2021-02-21 04:02:20 +00:00
|
|
|
- name: Run unit tests
|
2021-03-12 22:38:44 +00:00
|
|
|
run: ./gradlew testDebugUnitTest
|
2021-02-21 04:39:36 +00:00
|
|
|
- name: Grant execute permission for flank_auth.sh
|
|
|
|
run: chmod +x flank_auth.sh
|
2021-02-21 04:02:20 +00:00
|
|
|
- name: Add auth for flank
|
|
|
|
env:
|
|
|
|
GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }}
|
|
|
|
run: |
|
2021-02-21 04:36:07 +00:00
|
|
|
./flank_auth.sh
|
2021-02-21 04:02:20 +00:00
|
|
|
- name: Run UI tests
|
|
|
|
run: ./gradlew runFlank
|