Skip to content

Commit b19ee65

Browse files
committed
chore(ci): run cloud db drivers tests only when credentials are set
1 parent 73d9314 commit b19ee65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/drivers-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)