-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.38 KB
/
android_lint_checker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Android Lint Checker
run-name: Running Android Lint
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
android-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'corretto'
cache: gradle
- name: Setup Gradle Cache
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Configure Keystore
run: |
echo "$ANDROID_KEYSTORE_FILE" > app/keystore.jks.b64
base64 -d -i app/keystore.jks.b64 > app/keystore.jks
echo "keystoreFile=keystore.jks" >> signing.properties
echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> signing.properties
echo "keystorePassword=$KEYSTORE_STORE_PASSWORD" >> signing.properties
echo "::debug::storePassword=$KEYSTORE_STORE_PASSWORD"
echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> signing.properties
env:
ANDROID_KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Run Lint
run: ./gradlew lint
continue-on-error: false