Skip to content

Commit acd3ee6

Browse files
authored
Create main.yml
1 parent e003f18 commit acd3ee6

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/main.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
##################################################
2+
3+
# Run Mr Coxall's Super Linter against code base #
4+
5+
##################################################
6+
7+
---
8+
9+
name: Mr Coxall's Super Linter
10+
11+
on: [push, pull_request]
12+
13+
jobs:
14+
15+
run-linters:
16+
17+
name: Mr Coxall's Super Linter
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
23+
- name: Check out Git repository
24+
25+
uses: actions/checkout@main
26+
27+
# remove section if you do not have any htm, js or ts files!
28+
29+
- name: Prettify code
30+
31+
uses: Mr-Coxall/prettier_action@main
32+
33+
with:
34+
35+
# run Prettier and change code that needs fixing, before next section
36+
37+
prettier_options: --write **/*.{html,css,js,ts,jsx,tsx,json}
38+
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Run GitHub Super Linter
42+
43+
uses: github/super-linter@main
44+
45+
env:
46+
47+
VALIDATE_ALL_CODEBASE: true
48+
49+
LINTER_RULES_PATH: /
50+
51+
VALIDATE_CLANG_FORMAT: false
52+
53+
VALIDATE_JAVASCRIPT_STANDARD: false
54+
55+
VALIDATE_PYTHON_FLAKE8: false
56+
57+
VALIDATE_GITLEAKS: false # for secrets detection
58+
59+
VALIDATE_JSCPD: false # for copy and paste detection
60+
61+
DEFAULT_BRANCH: main
62+
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)