generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 951 Bytes
/
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
name: Linter
on: [pull_request]
jobs:
build:
name: Linter
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v6.8.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MARKDOWN_CONFIG_FILE: .markdown-lint.yml
FILTER_REGEX_EXCLUDE: |
.*\.md$| # Exclude all markdown files
.*test/.*| # Exclude all files in any test directory
.*_test\.go$| # Exclude Go test files (e.g., *_test.go)
.*\.json$ # Exclude all JSON files