Skip to content

Commit

Permalink
Migrate GitHub Actions workflow to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
vgaidarji committed Nov 5, 2019
1 parent e8b5cdf commit 0c5827e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build, Test and Distribute
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
uses: vgaidarji/android-github-actions/build@v1.0.0
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "./gradlew assembleDebug -PpreDexEnable=false"
- name: Check
uses: vgaidarji/android-github-actions/build@v1.0.0
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: Run UI Tests
uses: vgaidarji/android-github-actions/emulator@v1.0.0
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/android-github-actions/build@v1.0.0
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/android-github-actions/build@v1.0.0
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
args: "./gradlew coveralls -PpreDexEnable=false"

0 comments on commit 0c5827e

Please sign in to comment.