-
-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (33 loc) · 990 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Lint Code
on:
workflow_dispatch:
pull_request:
paths-ignore:
- install_dba-multitool.sql
jobs:
build:
name: Lint Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4.2.2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Super Linter
uses: github/super-linter@v7
env:
LINTER_RULES_PATH: .github/linter-conf
VALIDATE_MARKDOWN: true
VALIDATE_POWERSHELL: true
FILTER_REGEX_EXCLUDE: /github/workspace/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: TSQLLint
uses: lowlydba/tsqllint-action@main
with:
path: "*.sql"
config: "./.github/linter-conf/.tsqllintrc_150"
comment: true
only-changed-files: true