File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ jobs:
174174 timeout-minutes : 30
175175 needs : [latest-tag-sha, build]
176176 if : (needs['latest-tag-sha'].outputs.sha != github.sha)
177+ env :
178+ CLOUD_DATABASES : athena bigquery databricks-jdbc databricks-jdbc-export-bucket snowflake
177179 strategy :
178180 matrix :
179181 node :
@@ -238,6 +240,10 @@ jobs:
238240 yarn tsc
239241
240242 - name : Run tests
243+ # It's enough to test for any one secret because they are set all at once or not set all
244+ if : |
245+ (contains(env.CLOUD_DATABASES, matrix.database) && secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '') ||
246+ (!contains(env.CLOUD_DATABASES, matrix.database))
241247 env :
242248 # Athena
243249 DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY : ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }}
You can’t perform that action at this time.
0 commit comments