Skip to content

Commit

Permalink
Add android lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid committed Jul 16, 2024
1 parent 554d989 commit d062897
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci_android_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Android Lint

on:
pull_request:
types:
- opened
- edited

jobs:
lint:
name: Run Android Lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
architecture: x86_64

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run lint
run: ./gradlew lint

0 comments on commit d062897

Please sign in to comment.