diff --git a/.github/workflows/test-all-warehouses.yml b/.github/workflows/test-all-warehouses.yml index cb075661f..01ca0611f 100644 --- a/.github/workflows/test-all-warehouses.yml +++ b/.github/workflows/test-all-warehouses.yml @@ -37,7 +37,10 @@ jobs: strategy: fail-fast: false matrix: - dbt-version: ${{ inputs.dbt-version && fromJSON(format('["{0}"]', inputs.dbt-version)) || fromJSON('["1.3.0", "latest_official"]') }} + 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, @@ -48,6 +51,10 @@ jobs: databricks_catalog, spark, ] + 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 uses: ./.github/workflows/test-warehouse.yml with: warehouse-type: ${{ matrix.warehouse-type }}