Skip to content

Commit 1be3b20

Browse files
Create super-linter.yml
1 parent a9ed4fc commit 1be3b20

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/super-linter.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow executes several linters on changed files based on languages used in your code base whenever
2+
# you push a code or open a pull request.
3+
#
4+
# You can adjust the behavior by modifying this file.
5+
# For more information, see:
6+
# https://github.com/github/super-linter
7+
name: Lint Code Base
8+
9+
on:
10+
push:
11+
branches: [ master ]
12+
pull_request:
13+
branches: [ master ]
14+
jobs:
15+
run-lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
with:
21+
# Full git history is needed to get a proper list of changed files within `super-linter`
22+
fetch-depth: 0
23+
24+
- name: Lint Code Base
25+
uses: github/super-linter@v4
26+
env:
27+
VALIDATE_ALL_CODEBASE: true
28+
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js
29+
DEFAULT_BRANCH: master
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
FILTER_REGEX_INCLUDE: .*LeetcodeProblems/.*

0 commit comments

Comments
 (0)