SimpleMarkdown/.github/workflows/android.yml

52 lines
1.1 KiB
YAML
Raw Normal View History

name: Android CI
on:
pull_request:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
2022-10-30 03:41:16 +00:00
- name: set up JDK
uses: actions/setup-java@v3
with:
2022-10-30 03:41:16 +00:00
distribution: 'zulu'
java-version: '17'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
2022-11-03 13:20:41 +00:00
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: assemblePlayDebug assemblePlayDebugAndroidTest
unit_test:
name: Run Unit Tests
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Run unit tests
uses: gradle/gradle-build-action@v2
with:
arguments: testPlayDebugUnitTest
ui_tests:
runs-on: ubuntu-latest
name: Run UI Tests
needs:
- build
steps:
2021-02-21 04:39:36 +00:00
- name: Grant execute permission for flank_auth.sh
run: chmod +x flank_auth.sh
- name: Add auth for flank
env:
GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }}
run: |
2021-02-21 04:36:07 +00:00
./flank_auth.sh
- name: Run UI tests
uses: gradle/gradle-build-action@v2
with:
arguments: runFlank