Privacy 2024 queries #204
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
########################### | |
## Lint All SQL code | |
########################### | |
# | |
name: Lint SQL | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
src/requirements.txt | |
jobs: | |
lint: | |
name: Lint SQL | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
- name: Set up Python 3.12 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.12' | |
- name: Lint SQL code | |
if: | | |
github.event_name == 'workflow_dispatch' || | |
startsWith(github.event.pull_request.title,'Bump sqlfluff') == true | |
run: | | |
pip install -r src/requirements.txt | |
sqlfluff lint sql -p 4 |