diff --git a/.github/workflows/sql-linter.yaml b/.github/workflows/sql-linter.yaml new file mode 100644 index 0000000..c63a24e --- /dev/null +++ b/.github/workflows/sql-linter.yaml @@ -0,0 +1,31 @@ +name: Advanced SQL Quality Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint-sql: + name: Lint SQL Scripts + runs-on: ubuntu-latest + + steps: + - name: 📥 Завантаження коду + uses: actions/checkout@v4 + + - name: 🐍 Налаштування Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: 📦 Встановлення SQLFluff + run: | + python -m pip install --upgrade pip + pip install sqlfluff + + - name: 🔍 Перевірка SQL синтаксису (PostgreSQL) + run: sqlfluff lint . --dialect postgres \ No newline at end of file