Skip to content

Consider to migrate from super-linter to sqlfluff-github-actions #61

Description

@mfvanek

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions