-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (87 loc) · 2.29 KB
/
linting.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: Linting
on:
- pull_request
jobs:
build:
name: Smoke test building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn build
typecheck:
name: Typecheck TypeScript code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn typecheck
superlinter:
name: Run superlinter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn build
- uses: github/super-linter@v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: "/"
EDITORCONFIG_FILE_NAME: ".editorconfig"
YAML_ERROR_ON_WARNING: true
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_ENV: false
VALIDATE_SQL: false
VALIDATE_SQLFLUFF: false
VALIDATE_JAVA: false
VALIDATE_JSCPD: false
VALIDATE_KOTLIN: false
VALIDATE_KOTLIN_ANDROID: false
VALIDATE_LATEX: false
VALIDATE_PHP: false
VALIDATE_POWERSHELL: false
VALIDATE_PROTOBUF: false
VALIDATE_PYTHON: false
VALIDATE_R: false
VALIDATE_XML: false
prettier:
name: Validate Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
persist-credentials: false
- uses: creyD/[email protected]
with:
dry: True
prettier_options: "--check ."
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn build
- run: yarn lint