feat: added linter - in makefile and as a workflow #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# found on https://github.com/sqlfluff/sqlfluff-github-actions/tree/main/menu_of_workflows/sunrise_movement , edited to current sqlfluff workflow | |
name: Lint SQL | |
on: [pull_request] | |
jobs: | |
lint-models: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./backend/db/query | |
steps: | |
- uses: "actions/checkout@v2" | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "3.8" | |
- name: Install SQLFluff | |
run: "pip install sqlfluff" | |
- name: Lint Queries | |
run: "sqlfluff lint --verbose --dialect postgres ./" |