|
1 | 1 | name: Integration Tests
|
2 | 2 |
|
| 3 | +run-name: "${{ (contains(github.event_name, 'workflow_') && inputs.name) || github.event_name }}: ${{ (contains(github.event_name, 'workflow_') && inputs.adapter_branch) || github.ref_name }} by @${{ github.actor }}" |
| 4 | + |
3 | 5 | on:
|
4 | 6 | push:
|
5 | 7 | branches:
|
|
8 | 10 | pull_request:
|
9 | 11 | workflow_dispatch:
|
10 | 12 | inputs:
|
| 13 | + name: |
| 14 | + description: "Name to associate with run (example: 'dbt-adapters-242')" |
| 15 | + required: false |
| 16 | + type: string |
| 17 | + default: "Adapter Integration Tests" |
| 18 | + adapter_branch: |
| 19 | + description: "The branch of this adapter repository to use" |
| 20 | + type: string |
| 21 | + required: false |
| 22 | + default: "main" |
11 | 23 | dbt_adapters_branch:
|
12 | 24 | description: "The branch of dbt-adapters to use"
|
13 | 25 | type: string
|
14 | 26 | required: false
|
15 | 27 | default: "main"
|
16 |
| - core_branch: |
| 28 | + dbt_core_branch: |
17 | 29 | description: "The branch of dbt-core to use"
|
18 | 30 | type: string
|
19 | 31 | required: false
|
20 | 32 | default: "main"
|
| 33 | + dbt_common_branch: |
| 34 | + description: "The branch of dbt-common to use" |
| 35 | + type: string |
| 36 | + required: false |
| 37 | + default: "main" |
21 | 38 | workflow_call:
|
22 | 39 | inputs:
|
| 40 | + name: |
| 41 | + description: "name to associate with run" |
| 42 | + required: false |
| 43 | + type: string |
| 44 | + default: "Adapter Integration Tests" |
| 45 | + adapter_branch: |
| 46 | + description: "The branch of this adapter repository to use" |
| 47 | + type: string |
| 48 | + required: false |
| 49 | + default: "main" |
23 | 50 | dbt_adapters_branch:
|
24 | 51 | description: "The branch of dbt-adapters to use"
|
25 | 52 | type: string
|
26 | 53 | required: false
|
27 | 54 | default: "main"
|
28 |
| - core_branch: |
| 55 | + dbt_core_branch: |
29 | 56 | description: "The branch of dbt-core to use"
|
30 | 57 | type: string
|
31 | 58 | required: false
|
32 | 59 | default: "main"
|
| 60 | + dbt_common_branch: |
| 61 | + description: "The branch of dbt-common to use" |
| 62 | + type: string |
| 63 | + required: false |
| 64 | + default: "main" |
33 | 65 |
|
34 | 66 | permissions: read-all
|
35 | 67 |
|
@@ -67,14 +99,23 @@ jobs:
|
67 | 99 |
|
68 | 100 | steps:
|
69 | 101 | - name: Check out repository
|
| 102 | + if: ${{ github.event_name == 'pull_request'|| github.event_name == 'push' }} |
70 | 103 | uses: actions/checkout@v4
|
71 | 104 |
|
| 105 | + - name: Check out the repository (workflow_dispatch) |
| 106 | + if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} |
| 107 | + uses: actions/checkout@v4 |
| 108 | + with: |
| 109 | + ref: ${{ inputs.adapter_branch }} |
| 110 | + |
72 | 111 | - name: Update Adapters and Core branches
|
73 | 112 | if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'}}
|
74 | 113 | run: |
|
75 |
| - ./.github/scripts/update_dev_packages.sh \ |
| 114 | + ./.github/scripts/update_dev_dependency_branches.sh \ |
76 | 115 | ${{ inputs.dbt_adapters_branch }} \
|
77 |
| - ${{ inputs.core_branch }} |
| 116 | + ${{ inputs.dbt_core_branch }} \ |
| 117 | + ${{ inputs.dbt_common_branch }} |
| 118 | + cat pyproject.toml |
78 | 119 |
|
79 | 120 | - name: Setup postgres
|
80 | 121 | run: psql -f ./scripts/setup_test_database.sql
|
|
0 commit comments