Ele 3830 dbt cloud domain job run url #3291
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test all warehouse platforms | |
on: | |
pull_request: | |
branches: ["master"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
dbt-version: | |
type: string | |
required: false | |
description: dbt's version to test with | |
elementary-ref: | |
type: string | |
required: false | |
description: Branch or tag to checkout for 'elementary' repository | |
dbt-data-reliability-ref: | |
type: string | |
required: false | |
description: Branch or tag to checkout for 'dbt-data-reliability' repository | |
workflow_call: | |
inputs: | |
dbt-version: | |
type: string | |
required: false | |
elementary-ref: | |
type: string | |
required: false | |
dbt-data-reliability-ref: | |
type: string | |
required: false | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
dbt-version: | |
${{ inputs.dbt-version && fromJSON(format('["{0}"]', inputs.dbt-version)) || | |
! contains(github.event_name, 'pull_request') && fromJSON('["1.3.0", "latest_official"]') || | |
fromJSON('["latest_official"]') }} | |
warehouse-type: | |
[ | |
postgres, | |
snowflake, | |
bigquery, | |
redshift, | |
databricks, | |
databricks_catalog, | |
athena, | |
trino, | |
] | |
include: | |
# If we're not running on a specific dbt version, then always add postgres on 1.3.0 | |
- dbt-version: "${{ inputs.dbt-version || '1.3.0' }}" | |
warehouse-type: postgres | |
- dbt-version: "${{ inputs.dbt-version || 'latest_pre' }}" | |
warehouse-type: postgres | |
exclude: | |
- dbt-version: "1.3.0" | |
warehouse-type: athena | |
- dbt-version: "1.3.0" | |
warehouse-type: trino | |
uses: ./.github/workflows/test-warehouse.yml | |
with: | |
warehouse-type: ${{ matrix.warehouse-type }} | |
dbt-version: ${{ matrix.dbt-version }} | |
elementary-ref: ${{ inputs.elementary-ref }} | |
dbt-data-reliability-ref: ${{ inputs.dbt-data-reliability-ref }} | |
secrets: inherit | |
notify_failures: | |
name: Notify Slack | |
secrets: inherit | |
needs: [test] | |
if: | | |
always() && | |
! contains(needs.test.result, 'success') && | |
! contains(needs.test.result, 'cancelled') && | |
contains(github.event_name, 'schedule') && | |
! cancelled() | |
uses: elementary-data/elementary/.github/workflows/notify_slack.yml@master | |
with: | |
result: "failure" | |
run_id: ${{ github.run_id }} | |
workflow_name: ${{ github.workflow }} |