Skip to content

Commit

Permalink
fix: changed sqlfluff workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <[email protected]>
  • Loading branch information
emoral435 committed Mar 3, 2024
1 parent 4e6cc43 commit 41b3d0b
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/sqlfluff.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
name: sqlfluff with reviewdog
on:
pull_request:
name: Lint SQL

on: [pull_request]

jobs:
test-check:
name: runner / sqlfluff (github-check)
lint-models:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/db/query
steps:
- uses: actions/checkout@v2
- uses: yu-iskw/action-sqlfluff@v3
id: lint-sql
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
sqlfluff_version: "2.0.7"
sqlfluff_command: "fix" # Or "lint"
paths: '${{ github.workspace }}/backend/db/query'
- name: 'Show outputs (Optional)'
shell: bash
run: |
echo '${{ steps.lint-sql.outputs.sqlfluff-results }}' | jq -r '.'
echo '${{ steps.lint-sql.outputs.sqlfluff-results-rdjson }}' | jq -r '.'
python-version: "3.8"
- name: Install SQLFluff
run: "pip install sqlfluff==0.3.6"
- name: Lint models
run: "sqlfluff lint models"

0 comments on commit 41b3d0b

Please sign in to comment.