Skip to content

Commit

Permalink
Support sqlfluff v1.3.0 (#42)
Browse files Browse the repository at this point in the history
* Support sqlfluff v1.3.0

* Follows in action.yml

* Trigger tests
  • Loading branch information
yu-iskw authored Aug 22, 2022
1 parent a856d3a commit 2b799a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- "1.0.0"
- "1.1.0"
- "1.2.0"
- "1.3.0"
config:
- ".sqlfluff.bigquery"
- ".sqlfluff.postgres"
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
- "1.0.0"
- "1.1.0"
- "1.2.0"
- "1.3.0"
config:
- ".sqlfluff.bigquery"
- ".sqlfluff.postgres"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
sqlfluff_version: "1.2.0"
sqlfluff_version: "1.3.0"
sqlfluff_command: "fix" # Or "lint"
config: "${{ github.workspace }}/.sqlfluff"
paths: '${{ github.workspace }}/models'
Expand All @@ -57,6 +57,7 @@ The tested sqlfluff versions in the repositories are:
- 1.0.0
- 1.1.0
- 1.2.0
- 1.3.0
## Input
Expand Down Expand Up @@ -100,7 +101,7 @@ inputs:
description: |
sqlfluff version. Use the latest version if not set.
required: false
default: '1.2.0'
default: '1.3.0'
sqlfluff_command:
description: 'The sub command of sqlfluff. One of lint and fix'
required: false
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ inputs:
description: |
sqlfluff version. Use the latest version if not set.
required: false
default: '1.2.0'
default: '1.3.0'
sqlfluff_command:
description: 'The sub command of sqlfluff. One of lint and fix'
required: false
Expand Down
2 changes: 1 addition & 1 deletion testdata/test_failed_dbt/models/staging/staging_test02.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


SELECT
1 AS x,
1 AS x,
2 AS y,
3 AS z

0 comments on commit 2b799a6

Please sign in to comment.