Skip to content

Commit

Permalink
Add lint check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shubertm committed Aug 8, 2024
1 parent 5fc5eb6 commit 2662cc2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,41 @@ jobs:
with:
name: release-universal-apk
path: ./app/build/outputs/apk/release/app-universal-release.apk

lint:
needs: build
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Run linter
run: ./gradlew lint

- uses: actions/upload-artifact@v4
with:
name: lint-results
path: ./app/build/reports/*.html

ktlint:
needs: build
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Kotlin linter
run: ./gradlew ktlint -PautoCorrect=0

0 comments on commit 2662cc2

Please sign in to comment.