blob: f63a107fac8f4204215056c20cb4fa123aacf5f2 [file] [log] [blame]
name: Verify
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Run Lint
run: ./gradlew lintDebug
- name: Lint Results
uses: actions/upload-artifact@v1
with:
name: Lint Results
path: lottie/build/reports
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Run Unit Tests
run: ./gradlew testDebugUnitTest
- name: Lint Results
uses: actions/upload-artifact@v1
with:
name: Lint Results
path: lottie/build/reports
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [lint, unit-test]
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: "Deploy Snapshot"
run: ./deploy_snapshot.sh