Skip to content

chore(deps): fix pipeline configuration issue #31

chore(deps): fix pipeline configuration issue

chore(deps): fix pipeline configuration issue #31

Workflow file for this run

name: CD Pipeline
on:
push:
env:
DBT_VERSION: "1.7.7"
jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: ghcr.io/dbt-labs/dbt-postgres:$DBT_VERSION
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