Files
Meshtastic-Android/.github/workflows/android.yml
Lgx 9576ed2470 Update android.yml
May fix the issue with pull-request
2020-10-13 10:22:36 -04:00

30 lines
922 B
YAML

name: Android CI
# from https://medium.com/@wkrzywiec/github-actions-for-android-first-approach-f616c24aa0f9
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
- name: Mock config files for CI
run: |
rm ./app/google-services.json
cp ./app/google-services-example.json ./app/google-services.json
rm ./app/src/main/res/values/mapbox-token.xml
cp ./app/special/mapbox-token.xml ./app/src/main/res/values/
rm ./app/src/main/res/values/curfirmwareversion.xml
cp ./app/special/curfirmwareversion.xml ./app/src/main/res/values/
- name: set up JDK 1.8
uses: actions/setup-java@master
with:
java-version: 1.8
- name: Unit tests
run: bash ./gradlew test --stacktrace