Now we use super-linter image in pipeline to validate the quality of the sql queries
|
uses: super-linter/super-linter/slim@v8.5.0 |
The problems are:
- size of super-linter image is huge
- time for lint is high
The idea is to use sqlfluff directly
See https://github.com/sqlfluff/sqlfluff-github-actions/blob/main/menu_of_workflows/sunrise_movement/lint_models.yml
name: Lint Models
on: [pull_request]
jobs:
lint-models:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "3.8"
- name: Install SQLFluff
run: "pip install sqlfluff==0.3.6"
- name: Lint models
run: "sqlfluff lint models"
Now we use super-linter image in pipeline to validate the quality of the sql queries
pg-index-health-sql/.github/workflows/linter.yml
Line 21 in 5a06f92
The problems are:
The idea is to use sqlfluff directly
See https://github.com/sqlfluff/sqlfluff-github-actions/blob/main/menu_of_workflows/sunrise_movement/lint_models.yml