This action runs the latest TSQLLint.
Optional - Space separated path(s) to run linter against.
Wildcards can be specified using *.
Default is *.sql.
Optional - Path to a configuration file
for the linter.
Default is .github/linters/.tsqllintrc
Optional - Create comment with summary of linter results.
Default is false.
Optional - If run in a pull request, only lint Modified or Added files.
Default is false.
Optional - Append results from multiple runs in a single comment if comment is also true.
Default is false.
Optional - Add linter results to the job summary.
Default is false.
Optional - Branch to diff against when using only-changed-files.
Default is main.
jobs:
build:
name: Lint Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3.0.2
- name: TSQLLint
uses: lowlydba/tsqllint-action@v1.0.0
with:
path: "*.sql *.tsql"
config: "./.github/linter-conf/.tsqllintrc_150"
comment: true- If using
append, running marocchino/sticky-pull-request-comment first with thedeleteparameter may be required. See the test workflow as an example.
