Merge pull request #451 from metabrainz/migrate-to-kts #1170
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: ListenBrainz CI | |
on: | |
push: | |
branches: [ main, dev, beta ] | |
pull_request: | |
branches: [ main, dev, beta ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run unit tests | |
run: ./gradlew test | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Run lint with Gradle | |
run: ./gradlew lint | |
- name: Check lint results | |
uses: yutailang0119/action-android-lint@v4 | |
with: | |
report-path: build/reports/*.xml | |
continue-on-error: false |