Skip to content

chore: Add VSCode settings #35

chore: Add VSCode settings

chore: Add VSCode settings #35

Workflow file for this run

name: cicd
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
DBT_PROJECT_NAME: dbt_demo
DBT_PROFILES_DIR: '.'
DBT_WAREHOUSE_PROVIDER: 'snowflake'
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- run: sh setup.sh
- run: dbt compile
- run: dbt docs generate
scan:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
DBT_PROJECT_NAME: dbt_demo
DBT_WAREHOUSE_PROVIDER: 'snowflake'
DBT_PROFILES_DIR: '.'
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- run: echo "Scan"
test:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
DBT_PROJECT_NAME: dbt_demo
DBT_WAREHOUSE_PROVIDER: 'snowflake'
DBT_PROFILES_DIR: '.'
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- run: sh setup.sh
- run: dbt test
deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
DBT_PROJECT_NAME: dbt_demo
DBT_WAREHOUSE_PROVIDER: 'snowflake'
DBT_PROFILES_DIR: '.'
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
steps:
- run: echo "Deploy"
run:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
DBT_PROJECT_NAME: dbt_demo
DBT_PROFILES_DIR: '.'
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- run: sh setup.sh
- run: dbt run