Skip to content

Merge pull request #218 from afterpay/release/4.5.1 #435

Merge pull request #218 from afterpay/release/4.5.1

Merge pull request #218 from afterpay/release/4.5.1 #435

name: Build and Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test-sdk:
name: Build and Test SDK Project
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- name: Lint
run: ./gradlew afterpay:lintDebug afterpay:ktlint
- name: Unit Tests
run: ./gradlew afterpay:testDebugUnitTest
build-example:
name: Build Example Project
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- name: Build and Lint
run: ./gradlew example:buildDebug example:lintDebug example:ktlint