Skip to content

Commit

Permalink
ci(functions): update tests to use labeled on pull_request trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
grayside committed Jul 19, 2024
1 parent 2c58dcd commit 15917e0
Show file tree
Hide file tree
Showing 31 changed files with 452 additions and 482 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/functions-concepts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-concepts
on:
push:
branches:
- main
- main
paths:
- 'functions/concepts/**'
- '.github/workflows/functions-concepts.yaml'
- '.github/workflows/test.yaml'
- 'functions/concepts/**'
- '.github/workflows/functions-concepts.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/concepts/**'
- '.github/workflows/functions-concepts.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/concepts/**'
- '.github/workflows/functions-concepts.yaml'
- '.github/workflows/test.yaml'
- 'functions/concepts/**'
- '.github/workflows/functions-concepts.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand All @@ -49,7 +48,7 @@ jobs:
- 'functions/concepts/filesystem'
- 'functions/concepts/httpTermination'
- 'functions/concepts/requests'
- 'functions/concepts/stateless'
- 'functions/concepts/stateless'
uses: ./.github/workflows/test.yaml
with:
name: 'functions-concepts'
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-firebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-firebase
on:
push:
branches:
- main
- main
paths:
- 'functions/firebase/**'
- '.github/workflows/functions-firebase.yaml'
- '.github/workflows/test.yaml'
- 'functions/firebase/**'
- '.github/workflows/functions-firebase.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/firebase/**'
- '.github/workflows/functions-firebase.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/firebase/**'
- '.github/workflows/functions-firebase.yaml'
- '.github/workflows/test.yaml'
- 'functions/firebase/**'
- '.github/workflows/functions-firebase.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-helloworld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-helloworld
on:
push:
branches:
- main
- main
paths:
- 'functions/helloworld/**'
- '.github/workflows/functions-helloworld.yaml'
- '.github/workflows/test.yaml'
- 'functions/helloworld/**'
- '.github/workflows/functions-helloworld.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/helloworld/**'
- '.github/workflows/functions-helloworld.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/helloworld/**'
- '.github/workflows/functions-helloworld.yaml'
- '.github/workflows/test.yaml'
- 'functions/helloworld/**'
- '.github/workflows/functions-helloworld.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-http
on:
push:
branches:
- main
- main
paths:
- 'functions/http/**'
- '.github/workflows/functions-http.yaml'
- '.github/workflows/test.yaml'
- 'functions/http/**'
- '.github/workflows/functions-http.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/http/**'
- '.github/workflows/functions-http.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/http/**'
- '.github/workflows/functions-http.yaml'
- '.github/workflows/test.yaml'
- 'functions/http/**'
- '.github/workflows/functions-http.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-log-helloWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-log-helloWorld
on:
push:
branches:
- main
- main
paths:
- 'functions/log/helloWorld/**'
- '.github/workflows/functions-log-helloWorld.yaml'
- '.github/workflows/test.yaml'
- 'functions/log/helloWorld/**'
- '.github/workflows/functions-log-helloWorld.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/log/helloWorld/**'
- '.github/workflows/functions-log-helloWorld.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/log/helloWorld/**'
- '.github/workflows/functions-log-helloWorld.yaml'
- '.github/workflows/test.yaml'
- 'functions/log/helloWorld/**'
- '.github/workflows/functions-log-helloWorld.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-log-processEntry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-log-processEntry
on:
push:
branches:
- main
- main
paths:
- 'functions/log/processEntry/**'
- '.github/workflows/functions-log-processEntry.yaml'
- '.github/workflows/test.yaml'
- 'functions/log/processEntry/**'
- '.github/workflows/functions-log-processEntry.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/log/processEntry/**'
- '.github/workflows/functions-log-processEntry.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/log/processEntry/**'
- '.github/workflows/functions-log-processEntry.yaml'
- '.github/workflows/test.yaml'
- 'functions/log/processEntry/**'
- '.github/workflows/functions-log-processEntry.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-memorystore-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-memorystore-redis
on:
push:
branches:
- main
- main
paths:
- 'functions/memorystore/redis/**'
- '.github/workflows/functions-memorystore-redis.yaml'
- '.github/workflows/test.yaml'
- 'functions/memorystore/redis/**'
- '.github/workflows/functions-memorystore-redis.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/memorystore/redis/**'
- '.github/workflows/functions-memorystore-redis.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/memorystore/redis/**'
- '.github/workflows/functions-memorystore-redis.yaml'
- '.github/workflows/test.yaml'
- 'functions/memorystore/redis/**'
- '.github/workflows/functions-memorystore-redis.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-pubsub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-pubsub
on:
push:
branches:
- main
- main
paths:
- 'functions/pubsub/**'
- '.github/workflows/functions-pubsub.yaml'
- '.github/workflows/test.yaml'
- 'functions/pubsub/**'
- '.github/workflows/functions-pubsub.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/pubsub/**'
- '.github/workflows/functions-pubsub.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/pubsub/**'
- '.github/workflows/functions-pubsub.yaml'
- '.github/workflows/test.yaml'
- 'functions/pubsub/**'
- '.github/workflows/functions-pubsub.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-scheduleinstance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-scheduleinstance
on:
push:
branches:
- main
- main
paths:
- 'functions/scheduleinstance/**'
- '.github/workflows/functions-scheduleinstance.yaml'
- '.github/workflows/test.yaml'
- 'functions/scheduleinstance/**'
- '.github/workflows/functions-scheduleinstance.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/scheduleinstance/**'
- '.github/workflows/functions-scheduleinstance.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/scheduleinstance/**'
- '.github/workflows/functions-scheduleinstance.yaml'
- '.github/workflows/test.yaml'
- 'functions/scheduleinstance/**'
- '.github/workflows/functions-scheduleinstance.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/functions-security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,23 @@ name: functions-security
on:
push:
branches:
- main
- main
paths:
- 'functions/security/**'
- '.github/workflows/functions-security.yaml'
- '.github/workflows/test.yaml'
- 'functions/security/**'
- '.github/workflows/functions-security.yaml'
- '.github/workflows/test.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'functions/security/**'
- '.github/workflows/functions-security.yaml'
- '.github/workflows/test.yaml'
pull_request_target:
types: [labeled]
paths:
- 'functions/security/**'
- '.github/workflows/functions-security.yaml'
- '.github/workflows/test.yaml'
- 'functions/security/**'
- '.github/workflows/functions-security.yaml'
- '.github/workflows/test.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'
jobs:
test:
permissions:
Expand Down
Loading

0 comments on commit 15917e0

Please sign in to comment.