File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # ##########################
3+ # ##########################
4+ # # TSQL Lint GitHub Actions ##
5+ # ##########################
6+ # ##########################
7+ name : TSQL Lint
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+ push :
19+ branches-ignore :
20+ - ' master'
21+
22+ # ##############
23+ # Set the Job #
24+ # ##############
25+ jobs :
26+ build :
27+ # Name the Job
28+ name : TSQL Lint
29+ # Set the agent to run on
30+ runs-on : ubuntu-latest
31+
32+ # #################
33+ # Load all steps #
34+ # #################
35+ steps :
36+ # #########################
37+ # Checkout the code base #
38+ # #########################
39+ - name : Checkout Code
40+ uses : actions/checkout@v2
41+
42+ # ###############################
43+ # Run Linter against code base #
44+ # ###############################
45+ - name : Setup npm
46+ uses : actions/setup-node@main
47+
48+ - name : Lint SQL
49+ run : |
50+ npm install
51+ npm install tsqllint -g
52+ tsqllint *.sql
You can’t perform that action at this time.
0 commit comments