-
Notifications
You must be signed in to change notification settings - Fork 91
46 lines (38 loc) · 1.54 KB
/
fusion.yml
File metadata and controls
46 lines (38 loc) · 1.54 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
# **what?**
# Run tests using dbt Fusion against supported adapters
# **why?**
# To ensure that dbt-project-evaluator works as expected with dbt Fusion
# This runs alongside (not replacing) the existing dbt-core tests
# **when?**
# On every PR, and every push to main and when manually triggered
name: Fusion Integration Tests
on:
push:
branches:
- main
pull_request_target:
workflow_dispatch:
permissions:
contents: read
env:
PYTHON_VERSION: "3.11"
jobs:
fusion-tests:
uses: dbt-labs/dbt-package-testing/.github/workflows/run_tox_fusion.yml@5d4d8561b9fd193dc0ef2c5a302ad0acc8f68b64
with:
# Only Snowflake for now - add more adapters here as Fusion support expands
adapters: "snowflake"
environment: >-
${{ github.event_name == 'pull_request_target'
&& github.event.pull_request.head.repo.full_name != github.repository
&& 'cloud-tests' || '' }}
ref: ${{ github.event.pull_request.head.sha || '' }}
# snowflake
SNOWFLAKE_USER: ${{ vars.SNOWFLAKE_USER }}
SNOWFLAKE_ROLE: ${{ vars.SNOWFLAKE_ROLE }}
SNOWFLAKE_DATABASE: ${{ vars.SNOWFLAKE_DATABASE }}
SNOWFLAKE_WAREHOUSE: ${{ vars.SNOWFLAKE_WAREHOUSE }}
SNOWFLAKE_SCHEMA: "fusion_integration_tests_snowflake_${{ github.run_number }}"
secrets:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
DBT_ENV_SECRET_SNOWFLAKE_PASS: ${{ secrets.SNOWFLAKE_PASS }}