Skip to content

lowlydba/tsqllint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSQLLint GitHub Action

Lint Integration Tests

This action runs the latest TSQLLint.

Inputs

path

Optional - Space separated path(s) to run linter against. Wildcards can be specified using *. Default is *.sql.

config

Optional - Path to a configuration file for the linter. Default is .github/linters/.tsqllintrc

comment

Optional - Create comment with summary of linter results. Default is false.

only-changed-files

Optional - If run in a pull request, only lint Modified or Added files. Default is false.

append-comment

Optional - Append results from multiple runs in a single comment if comment is also true. Default is false.

summary

Optional - Add linter results to the job summary. Default is false.

compare-branch

Optional - Branch to diff against when using only-changed-files. Default is main.

Examples

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

Visuals

image

Notes