Skip to content

add CI workflow

add CI workflow #1

Workflow file for this run

name: Build and test
on:
pull_request:
branches:
[ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Unit Tests
run: ./gradlew lintDebug
- name: Run Unit Tests
run: ./gradlew test
- name: Run debug Build
run: ./gradlew assembleDebug