File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 25
25
required : true
26
26
streams :
27
27
description : Streams to include in regression tests
28
+ use_local_cdk :
29
+ description : Use the local CDK when building the target connector
30
+ default : " false"
31
+ type : boolean
28
32
29
33
jobs :
30
34
regression_tests :
73
77
echo "STREAM_PARAMS=--connector_regression_tests.selected-streams=$STREAMS" >> $GITHUB_ENV
74
78
fi
75
79
80
+ - name : Setup Local CDK Flag
81
+ if : github.event_name == 'workflow_dispatch'
82
+ run : |
83
+ if ${{ github.event.inputs.use_local_cdk }}; then
84
+ echo "USE_LOCAL_CDK_FLAG=--use-local-cdk" >> $GITHUB_ENV
85
+ else
86
+ echo "USE_LOCAL_CDK_FLAG=" >> $GITHUB_ENV
87
+ fi
88
+
76
89
- name : Run Regression Tests [WORKFLOW DISPATCH]
77
90
if : github.event_name == 'workflow_dispatch' # TODO: consider using the matrix strategy (https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs). See https://github.com/airbytehq/airbyte/pull/37659#discussion_r1583380234 for details.
78
91
uses : ./.github/actions/run-airbyte-ci
89
102
github_token : ${{ secrets.GH_PAT_MAINTENANCE_OSS }}
90
103
s3_build_cache_access_key_id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
91
104
s3_build_cache_secret_key : ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
92
- subcommand : connectors --name ${{ github.event.inputs.connector_name }} test --only-step connector_regression_tests --connector_regression_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_regression_tests.pr-url=${{ github.event.inputs.pr_url }} ${{ env.STREAM_PARAMS }}
105
+ subcommand : connectors ${{ env.USE_LOCAL_CDK_FLAG }} --name ${{ github.event.inputs.connector_name }} test --only-step connector_regression_tests --connector_regression_tests.connection-id=${{ github.event.inputs.connection_id }} --connector_regression_tests.pr-url=${{ github.event.inputs.pr_url }} ${{ env.STREAM_PARAMS }}
You can’t perform that action at this time.
0 commit comments