Skip to content

Commit c755c7c

Browse files
committed
chore(ci): run firebolt integration test only for internal PRs, not forks
1 parent 09ea671 commit c755c7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/push.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ jobs:
313313
runs-on: ubuntu-20.04
314314
timeout-minutes: 60
315315
if: (needs['latest-tag-sha'].outputs.sha != github.sha)
316+
env:
317+
CLOUD_DATABASES: >
318+
firebolt
319+
# Athena (just to check for secrets availability)
320+
DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }}
316321

317322
strategy:
318323
matrix:
@@ -370,6 +375,10 @@ jobs:
370375
retry_wait_seconds: 15
371376
timeout_minutes: 30
372377
command: ./.github/actions/integration/${{ matrix.db }}.sh
378+
# It's enough to test for any one secret because they are set all at once or not set all
379+
if: |
380+
(contains(env.CLOUD_DATABASES, matrix.db) && env.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '') ||
381+
(!contains(env.CLOUD_DATABASES, matrix.db))
373382
env:
374383
# Firebolt Integration
375384
DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME }}

0 commit comments

Comments
 (0)