-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 1.01 KB
/
lint-debug.yml
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
name: Lint
on:
workflow_dispatch:
pull_request_target:
jobs:
lint:
runs-on: ubuntu-latest
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x ./gradlew
shell: bash
- name: base64
run: |
echo $CERTIFICATE_BASE64 | base64 -i -d > ${{ github.workspace }}/app/android-LQ0F5.keystore
- name: lint
run: ./gradlew lint
- name: lintRelease
run: ./gradlew lintRelease
- name: upload lint result
uses: actions/upload-artifact@v3
with:
name: lint-results
path: ./app/build/reports/*.*