Skip to content

Commit

Permalink
Use sqlfluff 0.13.0 by default (#18)
Browse files Browse the repository at this point in the history
* Use sqlfluff 0.13.0 by default

* test

* Improve README.md
  • Loading branch information
yu-iskw authored Apr 26, 2022
1 parent 54771ff commit 31c5f00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sqlfluff: ["0.9.4", "0.10.1", "0.11.1"]
sqlfluff: ["0.9.4", "0.10.1", "0.11.1", "0.13.0"]
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sqlfluff: ["0.9.4", "0.10.1", "0.11.1"]
sqlfluff: ["0.9.4", "0.10.1", "0.11.1", "0.13.0"]
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ inputs:
reviewdog_version:
description: 'reviewdog version'
required: false
default: 'v0.13.0'
default: '0.13.0'
### Flags for sqlfluff ###
sqlfluff_version:
description: |
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
sqlfluff_version: "0.11.1"
sqlfluff_version: "0.13.0"
sqlfluff_command: "fix" # Or "lint"
config: "${{ github.workspace }}/.sqlfluff"
paths: '${{ github.workspace }}/models'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ inputs:
sqlfluff version. Use the latest version if not set.
It must be 0.9.0 or later, because `sqlfluff<=0.8.2` doesn't support the `--config` option in the `fix` sub command.
required: false
default: '0.11.1'
default: '0.13.0'
sqlfluff_command:
description: 'The sub command of sqlfluff. One of lint and fix'
required: false
Expand Down
1 change: 1 addition & 0 deletions testdata/test_failed_dbt/models/staging/staging_01.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
config(enabled=true)
}}


SELECT
1 2 3

0 comments on commit 31c5f00

Please sign in to comment.