-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.14 KB
/
subflow_analysis_lint.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
name: Analysis Lint
env:
KTLINT_VERSION: '0.43.2'
JAVA_VERSION: '17'
JAVA_DISTRIBUTION: 'adopt'
on:
workflow_dispatch:
workflow_call:
jobs:
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/${{ env.KTLINT_VERSION }}/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: run ktlint
run: |
ktlint --reporter=plain?group_by_file --disabled_rules=no-wildcard-imports, no-blank-line-before-rbrace, indent, filename, no-wildcard-imports
continue-on-error: true
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.2.0
with:
node-version-file: 'frontend/src/main/webapp/.nvmrc'
cache: 'npm'
cache-dependency-path: 'frontend/src/main/webapp/package-lock.json'
- run: npm install
working-directory: frontend/src/main/webapp
- run: npm run lint
working-directory: frontend/src/main/webapp
continue-on-error: true
# TODO tslint frontend