-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.37 KB
/
linter.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
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Linting
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- develop
- main
jobs:
build:
name: Linting
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter@v7.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
MARKDOWN_CONFIG_FILE: '.markdownlint.json'
VALIDATE_CHECKOV: false
VALIDATE_JSCPD: false
VALIDATE_KOTLIN: false
VALIDATE_JAVASCRIPT_PRETTIER: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_YAML_PRETTIER: false
VALIDATE_BASH_EXEC: false
- name: Set up JDK
uses: actions/setup-java@v4.4.0
with:
distribution: zulu
java-version: 21
cache: gradle
- run: ./gradlew lint
- name: Lint Foundation module
uses: yutailang0119/action-android-lint@v4
with:
report-path: foundation/build/reports/*.xml
- name: Lint Components module
uses: yutailang0119/action-android-lint@v4
with:
report-path: components/build/reports/*.xml