Skip to content

add param CI name and dbt sqlfluff #6

add param CI name and dbt sqlfluff

add param CI name and dbt sqlfluff #6

Workflow file for this run

name: CI - ${{ github.event_name }} - ${{ github.run_id }}

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI - ${{ github.event_name }} - ${{ github.run_id }}

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 1, Col: 7): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event_name
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