Skip to content

Commit e5209dd

Browse files
committed
Add ok-to-test label check to dbt integration workflow
- Add PR trigger types (opened, synchronize, labeled) - Add label check condition requiring ok-to-test/approved/lgtm - Prevents resource spin-up for every PR Signed-off-by: yassinnouh21 <yassinnouh21@gmail.com>
1 parent 3b5a3f8 commit e5209dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/dbt-integration-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: dbt-integration-tests
33
# Run dbt integration tests on PRs
44
on:
55
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- labeled
610
paths:
711
- 'sdk/python/feast/dbt/**'
812
- 'sdk/python/tests/integration/dbt/**'
@@ -11,6 +15,10 @@ on:
1115

1216
jobs:
1317
dbt-integration-test:
18+
if:
19+
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
20+
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
21+
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
1422
runs-on: ubuntu-latest
1523
strategy:
1624
matrix:

0 commit comments

Comments
 (0)