From 31c5f006bf98f6099a789578a6157ec3f8353aa6 Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Tue, 26 Apr 2022 22:24:42 +0900 Subject: [PATCH] Use sqlfluff 0.13.0 by default (#18) * Use sqlfluff 0.13.0 by default * test * Improve README.md --- .github/workflows/test.yml | 4 ++-- README.md | 4 ++-- action.yml | 2 +- testdata/test_failed_dbt/models/staging/staging_01.sql | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bc1d6b..448e869 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: ./ @@ -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: ./ diff --git a/README.md b/README.md index 9fea111..5d040df 100644 --- a/README.md +++ b/README.md @@ -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: | @@ -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' diff --git a/action.yml b/action.yml index 9335ca9..2b083da 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/testdata/test_failed_dbt/models/staging/staging_01.sql b/testdata/test_failed_dbt/models/staging/staging_01.sql index 2e81458..49e8fdd 100644 --- a/testdata/test_failed_dbt/models/staging/staging_01.sql +++ b/testdata/test_failed_dbt/models/staging/staging_01.sql @@ -2,5 +2,6 @@ config(enabled=true) }} + SELECT 1 2 3