-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate GitHub Actions workflow to YAML
- 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
Showing
2 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |