Skip to content

Commit ca30439

Browse files
committed
add destination tests with authorize step
1 parent 0e6068c commit ca30439

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/master.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ on:
66

77
jobs:
88

9+
# checks wether anything outside docs has changed, if not, most of the tests can be skipped
910
get_docs_changes:
1011
name: docs changes
1112
uses: ./.github/workflows/get_docs_changes.yml
1213

14+
# if the PR is from a fork, we need to authorize the secrets access and remote destinations run with a lable
15+
authorize_secrets_access:
16+
# run when label is assigned OR when we are not a fork
17+
if: ${{ github.event.label.name == 'ci from fork' || (github.event.pull_request.head.repo.full_name == github.repository && (github.event.action == 'opened' || github.event.action == 'synchronize'))}}
18+
runs-on: ubuntu-latest
19+
1320
lint:
1421
name: lint
1522
needs: get_docs_changes
@@ -20,6 +27,18 @@ jobs:
2027
needs: lint
2128
uses: ./.github/workflows/test_common.yml
2229

30+
#
31+
# Destination tests
32+
#
33+
2334
test_local_destinations:
2435
needs: test_common
2536
uses: ./.github/workflows/test_destinations_local.yml
37+
38+
test_destinations:
39+
needs: [test_common, authorize_secrets_access]
40+
uses: ./.github/workflows/test_destinations.yml
41+
42+
#
43+
# Other tools
44+
#

0 commit comments

Comments
 (0)