Skip to content

Commit 81385a6

Browse files
authored
ci(functions): update tests to use labeled on pull_request trigger (#3748)
* ci(functions): update tests to use labeled on pull_request trigger * temporary: Add debug job * revert inspect job * style: unindent list items
1 parent 2c58dcd commit 81385a6

31 files changed

+257
-287
lines changed

.github/workflows/functions-concepts.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-concepts.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/concepts/**'
27-
- '.github/workflows/functions-concepts.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/concepts/**'
3332
- '.github/workflows/functions-concepts.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:
@@ -43,13 +42,13 @@ jobs:
4342
strategy:
4443
matrix:
4544
path:
46-
- 'functions/concepts/afterResponse'
47-
- 'functions/concepts/afterTimeout'
48-
- 'functions/concepts/backgroundTermination'
49-
- 'functions/concepts/filesystem'
50-
- 'functions/concepts/httpTermination'
51-
- 'functions/concepts/requests'
52-
- 'functions/concepts/stateless'
45+
- 'functions/concepts/afterResponse'
46+
- 'functions/concepts/afterTimeout'
47+
- 'functions/concepts/backgroundTermination'
48+
- 'functions/concepts/filesystem'
49+
- 'functions/concepts/httpTermination'
50+
- 'functions/concepts/requests'
51+
- 'functions/concepts/stateless'
5352
uses: ./.github/workflows/test.yaml
5453
with:
5554
name: 'functions-concepts'

.github/workflows/functions-firebase.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-firebase.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/firebase/**'
27-
- '.github/workflows/functions-firebase.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/firebase/**'
3332
- '.github/workflows/functions-firebase.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:
@@ -43,12 +42,12 @@ jobs:
4342
strategy:
4443
matrix:
4544
path:
46-
- 'functions/firebase/helloAnalytics'
47-
- 'functions/firebase/helloAuth'
48-
- 'functions/firebase/helloFirestore'
49-
- 'functions/firebase/helloRemoteConfig'
50-
- 'functions/firebase/helloRTDB'
51-
- 'functions/firebase/makeUpperCase'
45+
- 'functions/firebase/helloAnalytics'
46+
- 'functions/firebase/helloAuth'
47+
- 'functions/firebase/helloFirestore'
48+
- 'functions/firebase/helloRemoteConfig'
49+
- 'functions/firebase/helloRTDB'
50+
- 'functions/firebase/makeUpperCase'
5251
uses: ./.github/workflows/test.yaml
5352
with:
5453
name: 'functions-firebase'

.github/workflows/functions-helloworld.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-helloworld.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/helloworld/**'
27-
- '.github/workflows/functions-helloworld.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/helloworld/**'
3332
- '.github/workflows/functions-helloworld.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:
@@ -43,11 +42,11 @@ jobs:
4342
strategy:
4443
matrix:
4544
path:
46-
- 'functions/helloworld/helloError'
47-
- 'functions/helloworld/helloGCS'
48-
- 'functions/helloworld/helloPubSub'
49-
- 'functions/helloworld/helloworldGet'
50-
- 'functions/helloworld/helloworldHttp'
45+
- 'functions/helloworld/helloError'
46+
- 'functions/helloworld/helloGCS'
47+
- 'functions/helloworld/helloPubSub'
48+
- 'functions/helloworld/helloworldGet'
49+
- 'functions/helloworld/helloworldHttp'
5150
uses: ./.github/workflows/test.yaml
5251
with:
5352
name: 'functions-helloworld'

.github/workflows/functions-http.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-http.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/http/**'
27-
- '.github/workflows/functions-http.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/http/**'
3332
- '.github/workflows/functions-http.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:
@@ -43,10 +42,10 @@ jobs:
4342
strategy:
4443
matrix:
4544
path:
46-
- 'functions/http/corsEnabledFunction'
47-
- 'functions/http/corsEnabledFunctionAuth'
48-
- 'functions/http/httpContent'
49-
- 'functions/http/httpMethods'
45+
- 'functions/http/corsEnabledFunction'
46+
- 'functions/http/corsEnabledFunctionAuth'
47+
- 'functions/http/httpContent'
48+
- 'functions/http/httpMethods'
5049
uses: ./.github/workflows/test.yaml
5150
with:
5251
name: 'functions-http'

.github/workflows/functions-log-helloWorld.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-log-helloWorld.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/log/helloWorld/**'
27-
- '.github/workflows/functions-log-helloWorld.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/log/helloWorld/**'
3332
- '.github/workflows/functions-log-helloWorld.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:

.github/workflows/functions-log-processEntry.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-log-processEntry.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/log/processEntry/**'
27-
- '.github/workflows/functions-log-processEntry.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/log/processEntry/**'
3332
- '.github/workflows/functions-log-processEntry.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:

.github/workflows/functions-memorystore-redis.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-memorystore-redis.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/memorystore/redis/**'
27-
- '.github/workflows/functions-memorystore-redis.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/memorystore/redis/**'
3332
- '.github/workflows/functions-memorystore-redis.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:

.github/workflows/functions-pubsub.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-pubsub.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/pubsub/**'
27-
- '.github/workflows/functions-pubsub.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/pubsub/**'
3332
- '.github/workflows/functions-pubsub.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:
@@ -43,8 +42,8 @@ jobs:
4342
strategy:
4443
matrix:
4544
path:
46-
- 'functions/pubsub/publish'
47-
- 'functions/pubsub/subscribe'
45+
- 'functions/pubsub/publish'
46+
- 'functions/pubsub/subscribe'
4847
uses: ./.github/workflows/test.yaml
4948
with:
5049
name: 'functions-pubsub'

.github/workflows/functions-scheduleinstance.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-scheduleinstance.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/scheduleinstance/**'
27-
- '.github/workflows/functions-scheduleinstance.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/scheduleinstance/**'
3332
- '.github/workflows/functions-scheduleinstance.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:

.github/workflows/functions-security.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ on:
2222
- '.github/workflows/functions-security.yaml'
2323
- '.github/workflows/test.yaml'
2424
pull_request:
25-
paths:
26-
- 'functions/security/**'
27-
- '.github/workflows/functions-security.yaml'
28-
- '.github/workflows/test.yaml'
29-
pull_request_target:
30-
types: [labeled]
25+
types:
26+
- opened
27+
- reopened
28+
- synchronize
29+
- labeled
3130
paths:
3231
- 'functions/security/**'
3332
- '.github/workflows/functions-security.yaml'
3433
- '.github/workflows/test.yaml'
3534
schedule:
36-
- cron: '0 0 * * 0'
35+
- cron: '0 0 * * 0'
3736
jobs:
3837
test:
3938
permissions:

0 commit comments

Comments
 (0)