mirror of https://github.com/iSoron/uhabits.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
name: Build & Test
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Java Development Kit 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Build Project
|
|
run: ./build.sh build
|
|
|
|
- name: Upload Build Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: uhabits-android
|
|
path: uhabits-android/build/outputs/
|
|
|
|
AndroidTest:
|
|
needs: Build
|
|
runs-on: macOS-10.15
|
|
strategy:
|
|
matrix:
|
|
api: [
|
|
# 23, # Failing tests
|
|
# 24, # Failing tests
|
|
# 25, # Failing tests
|
|
# 26, # Failing tests
|
|
# 27, # Failing tests
|
|
28,
|
|
# 29, # Crashes constantly, see: https://issuetracker.google.com/issues/159732638
|
|
# 30, # Not available yet
|
|
# 31, # Not available yet
|
|
]
|
|
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Download Previously Built APK
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: uhabits-android
|
|
path: uhabits-android/build/outputs/
|
|
|
|
- name: Run Android Tests
|
|
run: ./build.sh android-tests ${{ matrix.api }}
|
|
|