Skip to content

Commit

Permalink
Migrate GitHub Actions workflow to YAML
Browse files Browse the repository at this point in the history
- Migrated GitHub Actions workflow from HCL to YAML.
- Used https://github.com/ReactiveCircus/android-emulator-runner for UI tests on emulator. Existing [docker-android-emulator](https://github.com/vgaidarji/docker-android/tree/b7596cff73f42b4718e838218e0c5e018d9bd0ac/docker-android-emulator) image still not starting the emulator properly on ubuntu (latest tries [here](vgaidarji/docker-android@029b111)).
  • Loading branch information
vgaidarji authored May 9, 2020
1 parent e8b5cdf commit 947d60b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/main.workflow

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build, Test and Distribute
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "sdkmanager 'platforms;android-26' && ./gradlew assembleDebug -PpreDexEnable=false"
- name: Check
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "./gradlew testDebug jacocoTestReport checkstyle pmd jdepend lintDebug buildDashboard -PpreDexEnable=false"
- name: Distribute
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "./gradlew crashlyticsUploadDistributionDebug -PpreDexEnable=false"
- name: Publish Code Coverage
uses: vgaidarji/[email protected]
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
args: "./gradlew coveralls -PpreDexEnable=false"
androidTest:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
api-level: 29
arch: x86
disable-animations: true
script: ./gradlew connectedAndroidTest --stacktrace

0 comments on commit 947d60b

Please sign in to comment.