-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-functions-preload-sample
- Loading branch information
Showing
1,629 changed files
with
61,885 additions
and
25,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
assign_issues_by: | ||
- labels: | ||
- 'api: bigtable' | ||
- 'api: datastore' | ||
- 'api: firestore' | ||
to: | ||
- GoogleCloudPlatform/cloud-native-db-dpes | ||
- labels: | ||
- 'api: cloudsql' | ||
to: | ||
- GoogleCloudPlatform/infra-db-sdk | ||
- labels: | ||
- 'api: cloudiot' | ||
to: | ||
- laszlokorossy | ||
- labels: | ||
- 'api: spanner' | ||
to: | ||
- shivgautam | ||
|
||
assign_prs_by: | ||
- labels: | ||
- 'api: bigtable' | ||
- 'api: datastore' | ||
- 'api: firestore' | ||
to: | ||
- GoogleCloudPlatform/cloud-native-db-dpes | ||
- labels: | ||
- 'api: cloudsql' | ||
to: | ||
- GoogleCloudPlatform/infra-db-sdk | ||
- labels: | ||
- 'api: cloudiot' | ||
to: | ||
- laszlokorossy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
styles: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
|
||
- name: Run Script | ||
run: testing/run_cs_check.sh | ||
|
||
staticanalysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
|
||
- name: Run Script | ||
run: | | ||
composer global require phpstan/phpstan | ||
for dir in $(find * -type d -name src -not -path 'appengine/*' -not -path '*/vendor/*' -exec dirname {} \;); | ||
do | ||
echo -e "\n RUNNING for => $dir\n" | ||
composer install --working-dir=$dir --ignore-platform-reqs | ||
echo "<?php require_once 'testing/sample_helpers.php';require_once '$dir/vendor/autoload.php';" > autoload.php | ||
~/.composer/vendor/bin/phpstan analyse $dir/src --autoload-file=autoload.php | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/php80" | ||
} | ||
|
||
# Run the deployment tests | ||
env_vars: { | ||
key: "RUN_DEPLOYMENT_TESTS" | ||
value: "true" | ||
} | ||
|
||
# Only run deployment tests for App Engine Standard | ||
env_vars: { | ||
key: "TEST_DIRECTORIES" | ||
value: "appengine/standard" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/php80" | ||
} | ||
|
||
# Run the deployment tests | ||
env_vars: { | ||
key: "RUN_DEPLOYMENT_TESTS" | ||
value: "true" | ||
} | ||
|
||
# Only run deployment tests for Cloud Functions | ||
env_vars: { | ||
key: "TEST_DIRECTORIES" | ||
value: "functions" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/php80" | ||
} | ||
|
||
# Run the deployment tests | ||
env_vars: { | ||
key: "RUN_DEPLOYMENT_TESTS" | ||
value: "true" | ||
} | ||
|
||
# Run deployment tests for Cloud Run, EventArc Endpoints | ||
env_vars: { | ||
key: "TEST_DIRECTORIES" | ||
value: "endpoints eventarc run" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
// php-cs-fixer 3.0 distributed config file | ||
|
||
$config = new PhpCsFixer\Config(); | ||
$config | ||
->setRules([ | ||
'@PSR2' => true, | ||
'concat_space' => ['spacing' => 'one'], | ||
'no_unused_imports' => true, | ||
'whitespace_after_comma_in_array' => true, | ||
'method_argument_space' => [ | ||
'keep_multiple_spaces_after_comma' => true, | ||
'on_multiline' => 'ignore' | ||
], | ||
'return_type_declaration' => [ | ||
'space_before' => 'none' | ||
], | ||
// only converts simple strings in double quotes to single quotes | ||
// ignores strings using variables, escape characters or single quotes inside | ||
'single_quote' => true, | ||
// there should be a single space b/w the cast and it's operand | ||
'cast_spaces' => ['space' => 'single'], | ||
// there shouldn't be any trailing whitespace at the end of a non-blank line | ||
'no_trailing_whitespace' => true, | ||
// there shouldn't be any trailing whitespace at the end of a blank line | ||
'no_whitespace_in_blank_line' => true, | ||
// there should be a space around binary operators like (=, => etc) | ||
'binary_operator_spaces' => ['default' => 'single_space'], | ||
// deals with rogue empty blank lines | ||
'no_extra_blank_lines' => ['tokens' => ['extra']], | ||
// reduces multi blank lines b/w phpdoc description and @param to a single line | ||
// NOTE: Doesn't add a blank line if none exist | ||
'phpdoc_trim_consecutive_blank_line_separation' => true, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
) | ||
; | ||
|
||
return $config; |
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,59 @@ | ||
# Code owners file. | ||
# This file controls who is tagged for review for any given pull request. | ||
# Code owners file | ||
|
||
# This file controls who is tagged for review for any given pull request | ||
|
||
# | ||
# For syntax help see: | ||
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax | ||
|
||
# For syntax help see | ||
|
||
# <https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax> | ||
|
||
# The php-admins team is the default owner for anything not | ||
# explicitly taken by someone else. | ||
* @GoogleCloudPlatform/php-admins | ||
|
||
/bigtable/ @GoogleCloudPlatform/bigtable-dpe @GoogleCloudPlatform/php-admins | ||
/cloud_sql/ @GoogleCloudPlatform/cloud-sql-dpes @GoogleCloudPlatform/php-admins | ||
/datastore/ @GoogleCloudPlatform/firestore-dpe @GoogleCloudPlatform/php-admins | ||
/firestore/ @GoogleCloudPlatform/firestore-dpe @GoogleCloudPlatform/php-admins | ||
/iot/ @gcseh @GoogleCloudPlatform/api-iot @GoogleCloudPlatform/php-admins | ||
/storage/ @GoogleCloudPlatform/storage-dpe @GoogleCloudPlatform/php-admins | ||
|
||
# explicitly taken by someone else | ||
|
||
* @GoogleCloudPlatform/php-samples-reviewers | ||
|
||
# Kokoro | ||
|
||
.kokoro @GoogleCloudPlatform/php-admins | ||
|
||
/bigtable/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers | ||
/cloud_sql/**/*.php @GoogleCloudPlatform/infra-db-sdk @GoogleCloudPlatform/php-samples-reviewers | ||
/datastore/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers | ||
/firestore/**/*.php @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/php-samples-reviewers | ||
/storage/ @GoogleCloudPlatform/cloud-storage-dpe @GoogleCloudPlatform/php-samples-reviewers | ||
/spanner/ @GoogleCloudPlatform/api-spanner @GoogleCloudPlatform/php-samples-reviewers | ||
|
||
# Serverless, Orchestration, DevOps | ||
|
||
/appengine/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers | ||
/functions/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers | ||
/run/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers | ||
/eventarc/ @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/php-samples-reviewers | ||
|
||
# Functions samples owned by the Firebase team | ||
|
||
/functions/firebase_analytics @schandel | ||
|
||
# DLP samples owned by DLP team | ||
|
||
/dlp/ @GoogleCloudPlatform/googleapis-dlp | ||
|
||
# Brent is taking ownership of these samples as they are not supported by the ML team | ||
|
||
/dialogflow/ @bshaffer | ||
/language/ @bshaffer | ||
/speech/ @bshaffer | ||
/translate/ @bshaffer | ||
/texttospeech/ @bshaffer | ||
/vision/ @bshaffer | ||
/video/ @bshaffer | ||
|
||
# Compute samples owned by Remik | ||
|
||
/compute/cloud-client/ @rsamborski | ||
|
||
# Deprecated | ||
|
||
/iot/ @GoogleCloudPlatform/php-samples-reviewers |
Oops, something went wrong.