chore: use convention plugins as alias #11
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: Android Build | |
on: | |
push: | |
branches: | |
- development | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
# Only write to the cache for builds on the 'development' branch | |
cache-read-only: ${{ github.ref != 'refs/heads/development' }} | |
- name: Build Project | |
run: ./gradlew assemble | |
- name: Run Tests | |
run: ./gradlew test | |
- name: Lint Checks | |
run: ./gradlew detektAll lintKotlin lint |