-
-
Notifications
You must be signed in to change notification settings - Fork 533
34 lines (32 loc) · 1001 Bytes
/
CI_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
name: 'Lint Code Base'
on:
push:
branches-ignore:
- 'master'
- 'l10n_**' # Push events to translation service branches (that begin with "l10n_")
pull_request:
# Match all pull requests
jobs:
lint-code-base:
name: 'Lint Code Base'
permissions:
contents: read
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
# .eslintrc.json allows non-standard comments
FILTER_REGEX_EXCLUDE: .*(\.eslintrc\.json|3rdparty/).*
LINTER_RULES_PATH: /
VALIDATE_YAML: true
VALIDATE_JSON: true
VALIDATE_JAVASCRIPT_ES: true
JAVASCRIPT_ES_CONFIG_FILE: '.eslintrc.json'