Skip to content

Merge pull request #605 from EventFahrplan/moment-class-adoption #111

Merge pull request #605 from EventFahrplan/moment-class-adoption

Merge pull request #605 from EventFahrplan/moment-class-adoption #111

Workflow file for this run

name: Build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Build the app
run: ./gradlew assembleCcc37c3
- name: Unit Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 21
script: ./gradlew testDebug :engelsystem:test testCcc37c3DebugUnitTest assembleCcc37c3Debug lintAnalyzeCcc37c3Debug
- name: Publish unit-test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: |
build/test-results/**/*.xml
*/build/test-results/**/*.xml
android_tests:
# see https://github.com/reactivecircus/android-emulator-runner,
# needs to run on macos as only there virtualization is available!
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 21
script: ./gradlew connectedCcc37c3DebugAndroidTest
- name: Publish unit-test results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: |
build/test-results/**/*.xml
*/build/test-results/**/*.xml
*/build/outputs/androidTest-results/connected/*.xml