Skip to content

Commit 69903ea

Browse files
authored
Create tsqllint.yml
1 parent 323dcb0 commit 69903ea

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/tsqllint.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

0 commit comments

Comments
 (0)