Skip to content

Commit 1fc67ee

Browse files
authored
feat: added super-linter
1 parent bcb0db3 commit 1fc67ee

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/linter.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
###########################
3+
###########################
4+
## Linter GitHub Actions ##
5+
###########################
6+
###########################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
pull_request:
19+
branches: [master]
20+
21+
###############
22+
# Set the Job #
23+
###############
24+
jobs:
25+
build:
26+
# Name the Job
27+
name: Lint Code Base
28+
# Set the agent to run on
29+
runs-on: ubuntu-latest
30+
31+
##################
32+
# Load all steps #
33+
##################
34+
steps:
35+
##########################
36+
# Checkout the code base #
37+
##########################
38+
- name: Checkout Code
39+
uses: actions/checkout@v2
40+
with:
41+
# Full git history is needed to get a proper list of changed files within `super-linter`
42+
fetch-depth: 0
43+
44+
################################
45+
# Run Linter against code base #
46+
################################
47+
- name: Lint Code Base
48+
uses: github/super-linter@v4
49+
env:
50+
VALIDATE_ALL_CODEBASE: false
51+
DEFAULT_BRANCH: master
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
JAVASCRIPT_DEFAULT_STYLE: prettier

0 commit comments

Comments
 (0)