-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.49 KB
/
integration.yml
File metadata and controls
50 lines (41 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# integration.yml — runs Go/Terratest integration tests against a real dbt Cloud account.
# Triggered manually only to avoid consuming sandbox API quota on every PR.
# Requires secrets: DBT_CLOUD_ACCOUNT_ID, DBT_CLOUD_TOKEN
name: Integration Tests
on:
workflow_dispatch:
inputs:
host_url:
description: "dbt Cloud host URL (leave blank for https://cloud.getdbt.com)"
required: false
default: ""
permissions:
contents: read
jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: "1.20"
cache-dependency-path: test/go.sum
- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
with:
terraform_version_file: .terraform-version
terraform_wrapper: false
- name: Go mod download
working-directory: test
run: go mod download
- name: Run integration tests
working-directory: test
env:
RUN_INTEGRATION_TESTS: "1"
DBT_CLOUD_ACCOUNT_ID: ${{ secrets.DBT_CLOUD_ACCOUNT_ID }}
DBT_CLOUD_TOKEN: ${{ secrets.DBT_CLOUD_TOKEN }}
DBT_CLOUD_HOST_URL: ${{ github.event.inputs.host_url }}
run: go test -v -timeout 30m -run Integration ./...