Skip to content

Update build-and-test.yml #439

Update build-and-test.yml

Update build-and-test.yml #439

Workflow file for this run

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:lint afterpay:spotlessCheck
- name: Unit Tests
run: ./gradlew afterpay:testDebugUnitTest
build-example:
name: Build Sample 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 sample:buildDebug sample:lintDebug sample:spotlessCheck