add param CI name and dbt sqlfluff #6
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
name: CI - ${{ github.event_name }} - ${{ github.run_id }} | ||
Check failure on line 1 in .github/workflows/main.yml
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
install-dbt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Install pip dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install dbt sqlfluff-templater-dbt | ||
- name: Verify installation | ||
run: | | ||
dbt --version | ||
sqlfluff --version | ||
- name: Run sqlfluff lint | ||
run: | | ||
sqlfluff lint models/*.sql |