-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1010 Bytes
/
lint-android.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
41
42
name: Lint Android
on:
workflow_dispatch:
pull_request:
branches: [ develop, main ]
jobs:
lint-android:
name: Lint Android
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Setup Bundler
run: |
bundle config --local path ./vendor/bundle
bundle config --local deployment true
bundle install
- name: Setup Config
env:
custom_config: ${{ secrets.SECRETS }}
if: ${{ env.custom_config != '' }}
run: |
base64 -d <<< ${{ env.custom_config }} > custom.properties
- name: Ensure config files exist
run: |
touch custom.properties
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Run Lint
run: ./gradlew lint
- uses: yutailang0119/action-android-lint@v3
with:
report-path: build/reports/*.xml
continue-on-error: false