Skip to content

Add .env example file and update setup instructions #27

Add .env example file and update setup instructions

Add .env example file and update setup instructions #27

Workflow file for this run

name: CD Pipeline
on:
push:
jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: ghcr.io/dbt-labs/dbt-postgres:1.6.3
env:
POSTGRES_HOST: ${{ vars.POSTGRES_HOST }}
POSTGRES_USER: ${{ vars.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ vars.POSTGRES_DB }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
dbt deps
- name: Run unit tests
run: |
dbt test --target test --select tag:unit-tests
- name: Run component tests
run: |
dbt test --target test --select tag:component-test
deploy-test:
name: Deploy to test
needs: [test]
uses: ./.github/workflows/deploy.yml
with:
environment-name: test
secrets: inherit