Skip to content

dbt Cloud Integration Tests #441

dbt Cloud Integration Tests

dbt Cloud Integration Tests #441

Workflow file for this run

on:
pull_request_target:
branches:
- main
merge_group:
branches:
- main
schedule:
# every sunday at 2:45 AM so we catch up issues that might not have been raised yet
- cron: '45 2 * * 0'
name: dbt Cloud Integration Tests
jobs:
unit:
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
runs-on: ubuntu-latest
strategy:
matrix:
target:
- check-docs
- test
- test-acceptance
steps:
- name: pull_request actions/checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v4
with:
go-version: '>=1.17.0'
- name: Install dependencies
run: make setup
# we install Terraform beforehand, otherwise each test requires downloading it
- uses: hashicorp/setup-terraform@v3
- name: make ${{ matrix.target }}
run: make ${{ matrix.target }}
env:
DBT_CLOUD_ACCOUNT_ID: ${{ secrets.TEST_DBT_CLOUD_ACCOUNT_ID }}
DBT_CLOUD_TOKEN: ${{ secrets.TEST_DBT_CLOUD_TOKEN }}
DBT_CLOUD_HOST_URL: ${{ secrets.TEST_DBT_CLOUD_HOST_URL }}