diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c114721..9fec33b 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"] + sqlfluff: ["0.9.4", "0.10.1", "0.11.1"] steps: - uses: actions/checkout@v2 - uses: ./ @@ -41,7 +41,7 @@ jobs: strategy: fail-fast: false matrix: - sqlfluff: ["0.9.4", "0.10.1"] + sqlfluff: ["0.9.4", "0.10.1", "0.11.1"] steps: - uses: actions/checkout@v2 - uses: ./ diff --git a/README.md b/README.md index 0ea4477..ed9b079 100644 --- a/README.md +++ b/README.md @@ -175,13 +175,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: yu-iskw/action-sqlfluff@v2 + - uses: yu-iskw/action-sqlfluff@v3 id: lint-sql with: github_token: ${{ secrets.github_token }} reporter: github-pr-review - sqlfluff_version: "0.10.1" - sqlfluff_command: "lint" # Or fix + sqlfluff_version: "0.11.1" + sqlfluff_command: "fix" # Or "lint" config: "${{ github.workspace }}/.sqlfluff" paths: '${{ github.workspace }}/models' - name: 'Show outputs (Optional)' diff --git a/action.yml b/action.yml index cfdd101..6a64826 100644 --- a/action.yml +++ b/action.yml @@ -41,7 +41,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.10.1' + default: '0.11.1' sqlfluff_command: description: 'The sub command of sqlfluff. One of lint and fix' required: false