Cleanup #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Caloree | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint-checks: | |
name: Lint Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "corretto" | |
java-version: "17" | |
- name: Run Lint Checks | |
run: | | |
./gradlew ktlintCheck | |
run-tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "corretto" | |
java-version: "17" | |
- name: Run tests | |
run: | | |
./gradlew testDebugUnitTest | |
build: | |
needs: | |
- lint-checks | |
- run-tests | |
name: Assemble Android Apk | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "corretto" | |
java-version: "17" | |
- name: Build Android App | |
run: | | |
./gradlew assembleDebug | |