feat: improve ci in github actions #4
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
--- | |
name: CI dbt | |
on: | |
pull_request: | |
paths: ['**.sql', '**.yaml'] | |
jobs: | |
lint: | |
name: Lint sql and yaml | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
cache: pip | |
python-version: '3.10' | |
- name: Install requirements | |
run: pip install sqlfmt yamlfix | |
- name: Lint sql | |
run: sqlfmt --diff . | |
- name: Lint yaml | |
run: yamlfix --check . |