-
-
Notifications
You must be signed in to change notification settings - Fork 535
39 lines (37 loc) · 1.22 KB
/
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
35
36
37
38
39
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
packages: read
# To report GitHub Actions status checks
statuses: write
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v4
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: super-linter/[email protected] # x-release-please-version
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
# .eslintrc.json allows non-standard comments
FILTER_REGEX_EXCLUDE: .*(\.eslintrc\.json|3rdparty/|platforms/emscripten/).*
LINTER_RULES_PATH: /
VALIDATE_YAML: true
VALIDATE_JSON: true
VALIDATE_JAVASCRIPT_ES: true
JAVASCRIPT_ES_CONFIG_FILE: '.eslintrc.json'
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}