Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
7654262
chore: initial commit
DominicKramer Jun 19, 2018
d97fd47
docs: improve the readme
JustinBeckwith Jun 29, 2018
fee63b4
🤦‍♂️
JustinBeckwith Jun 29, 2018
4a823b9
fixy
JustinBeckwith Jun 29, 2018
a19e007
docs: improve the readme (#230)
JustinBeckwith Jun 29, 2018
f8fc0ab
fix(package): add repo link (#4)
ofrobots Jun 30, 2018
f090f0d
chore: miscellaneous changes (#5)
ofrobots Jun 30, 2018
a4d35fd
chore(build): add CircleCI config (#11)
JustinBeckwith Dec 7, 2018
2b089d8
fix: run gts fix (#12)
JustinBeckwith Dec 7, 2018
34c4810
chore(package): update dependencies
greenkeeper[bot] Feb 17, 2019
3719617
docs(readme): add Greenkeeper badge
greenkeeper[bot] Feb 17, 2019
1718414
chore(package): update lockfile package-lock.json
greenkeeper[bot] Feb 17, 2019
7dac55f
chore(package): upgrade dependencies (#23)
ofrobots Mar 19, 2019
1aff639
chore(package): update @types/node to version 11.11.4 (#24)
ofrobots Mar 20, 2019
c1bbc03
fix(package): update tmp to version 0.1.0
greenkeeper[bot] Mar 25, 2019
e2664f5
chore: update @types/node from 11.12.2 to 11.12.3 (#28)
DominicKramer Apr 1, 2019
49f0010
Update @types/tmp to the latest version 🚀 (#27)
greenkeeper[bot] Apr 1, 2019
508814c
docs: update badges on the README (#30)
JustinBeckwith Apr 10, 2019
484a70f
chore(deps): update dependency typescript to ~3.4.0 (#32)
Apr 10, 2019
4e197c8
test: add basic test and coverage (#31)
JustinBeckwith Apr 10, 2019
dc1263f
Update nyc to the latest version 🚀 (#35)
greenkeeper[bot] Apr 16, 2019
e9d1aae
build!: drop support for node 6 (#36)
ofrobots Apr 25, 2019
d0d4125
feat: introduce a new API for consumer tests (#33)
ofrobots Apr 25, 2019
66f1d1e
chore(deps): audit fix (#37)
ofrobots Apr 25, 2019
54b1f13
chore: rename the library (#38)
JustinBeckwith Apr 25, 2019
450ddb1
build: test on node:12 (#39)
JustinBeckwith Apr 26, 2019
dcfcb2d
chore(deps): upgrade to gts@1 (#41)
ofrobots May 7, 2019
f92b515
build(deps): bump lodash from 4.17.11 to 4.17.15 (#44)
dependabot[bot] Nov 6, 2019
e76966b
fix(deps): update dependency rimraf to v3 (#43)
renovate-bot Nov 9, 2019
e73b136
chore(deps): update dependency typescript to ~3.7.0 (#42)
renovate-bot Nov 9, 2019
eb91e0c
fix(deps): update dependency npm-packlist to v2 (#45)
renovate-bot Nov 9, 2019
807d0d6
fix(deps): update dependency tar to v5 (#46)
renovate-bot Nov 9, 2019
ccfef9a
build: use c8 for coverage (#48)
JustinBeckwith Nov 9, 2019
1132d2d
fix(deps): drop dependency on pify (#50)
JustinBeckwith Nov 9, 2019
296ffaa
chore: release 1.0.0-0 (#49)
JustinBeckwith Nov 10, 2019
3c37ecb
build: use wombat dressing room (#52)
JustinBeckwith Nov 10, 2019
c116b46
chore: release 1.0.0-2 (#55)
JustinBeckwith Nov 10, 2019
a729154
refactor!: simplify the module, tests, and remove old interface (#57)
JustinBeckwith Dec 5, 2019
084a349
chore(deps): update dependency c8 to v7 (#61)
renovate-bot Dec 22, 2019
f27d614
chore(deps): update dependency mocha to v7 (#63)
renovate-bot Jan 4, 2020
4b92c52
fix(deps): update dependency tar to v6 (#64)
renovate-bot Jan 28, 2020
f8cdaa9
chore(deps): update dependency @types/mocha to v7 (#65)
renovate-bot Jan 29, 2020
ef06a4f
fix!: support node.js 10 and up (#67)
JustinBeckwith Feb 6, 2020
1a0f56f
build: use github actions (#68)
JustinBeckwith Feb 6, 2020
2385882
test: update mocha config (#66)
JustinBeckwith Feb 6, 2020
f6179cf
build(deps-dev): bump codecov from 3.3.0 to 3.6.5 (#69)
dependabot[bot] Feb 19, 2020
050e938
fix(deps): update dependency tmp to v0.2.0 (#71)
renovate-bot Apr 26, 2020
58ca0bf
chore(deps): update dependency typescript to ~3.8.0 (#70)
renovate-bot Apr 26, 2020
0a85aae
chore(deps): update dependency @types/rimraf to v3 (#72)
renovate-bot Apr 26, 2020
f80eb2e
build: upgrade to gts@2 (#74)
JustinBeckwith Apr 27, 2020
5a11735
fix(deps): update dependency tmp to v0.2.1 (#75)
renovate-bot Apr 29, 2020
15feca2
chore(deps): update dependency @types/tmp to v0.2.0 (#76)
renovate-bot May 1, 2020
e516aaa
chore(deps): update dependency typescript to ~3.9.0 (#77)
renovate-bot May 26, 2020
feca2ac
chore(deps): update dependency mocha to v8 (#78)
renovate-bot Jun 10, 2020
9716512
chore(deps): update dependency @types/mocha to v8 (#79)
renovate-bot Jul 16, 2020
9b11d4f
build(deps): bump lodash from 4.17.15 to 4.17.19 (#80)
dependabot[bot] Jul 16, 2020
15ae2c5
chore(deps): update dependency typescript to v4 (#81)
renovate-bot Aug 20, 2020
01cc50e
chore(deps): update dependency gts to v3 (#83)
renovate-bot Oct 26, 2020
99d0c88
chore(deps): update dependency typescript to ~4.1.0 (#84)
renovate-bot Nov 19, 2020
160e3c2
fix(deps): update dependency execa to v5 (#85)
renovate-bot Dec 3, 2020
2e4c853
build(deps): bump ini from 1.3.5 to 1.3.7 (#86)
dependabot[bot] Dec 10, 2020
f026441
build(deps): bump y18n from 4.0.0 to 4.0.1 (#88)
dependabot[bot] Mar 30, 2021
6201651
build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#91)
dependabot[bot] May 9, 2021
db26e9f
build(deps): bump lodash from 4.17.19 to 4.17.21 (#90)
dependabot[bot] May 9, 2021
90ac354
chore(deps): update dependency typescript to ~4.3.0 (#89)
renovate-bot May 29, 2021
71725e9
chore(deps): update dependency @types/node to v14 (#92)
renovate-bot May 30, 2021
bdedaa3
build(deps): bump trim-newlines from 3.0.0 to 3.0.1 (#94)
dependabot[bot] Jun 8, 2021
7dc7962
build(deps): bump normalize-url from 4.5.0 to 4.5.1 (#96)
dependabot[bot] Jun 13, 2021
9d8b6ef
build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#95)
dependabot[bot] Jun 14, 2021
058345b
chore(deps): update dependency @types/tmp to v0.2.1 (#97)
renovate-bot Jul 2, 2021
d246f2b
build(deps): bump path-parse from 1.0.6 to 1.0.7 (#101)
dependabot[bot] Aug 10, 2021
407df68
chore(deps): update dependency typescript to ~4.4.0 (#103)
renovate-bot Aug 29, 2021
4cfa8de
build(deps): bump tar from 6.0.1 to 6.1.2 (#98)
dependabot[bot] Aug 29, 2021
63a4cf9
build(deps): bump tar from 6.1.2 to 6.1.9 (#105)
dependabot[bot] Aug 31, 2021
3dfb70a
chore(deps): update dependency mocha to v9 (#93)
renovate-bot Aug 31, 2021
3f79218
feat: support esm code blocks
ruyadorno Jun 6, 2023
18b1707
chore(deps): Upgrade necessary deps to get build / tests passing (#139)
ddelgrosso1 Sep 25, 2023
5156843
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.5 (#141)
dependabot[bot] Sep 25, 2023
3135712
chore: add a Code of Conduct (#127)
google-cloud-policy-bot[bot] Sep 25, 2023
26f4dfd
feat!: move to node 14 minimum (#143)
ddelgrosso1 Sep 26, 2023
222db2f
chore(master): release 2.0.0 (#130)
release-please[bot] Sep 26, 2023
45fe67b
chore(deps): update dependency @types/tmp to v0.2.4 (#151)
renovate-bot Sep 27, 2023
f36e1ae
fix: add kokoro publish configs, update url and deps (#149)
ddelgrosso1 Sep 29, 2023
4af26bd
chore(main): release 2.0.1 (#154)
release-please[bot] Oct 3, 2023
649c424
test: increase timeout for slow running tests (#162)
ddelgrosso1 Oct 24, 2023
41aea10
chore(deps): update dependency @types/tmp to v0.2.5 (#160)
renovate-bot Oct 24, 2023
2dd66c2
fix: Use `gts` to Target Newer Versions of JavaScript (#164)
danielbankhead Oct 31, 2023
c7cb6b2
chore(main): release 2.0.2 (#165)
release-please[bot] Oct 31, 2023
43ae06a
fix: Publishing Config (#168)
danielbankhead Nov 1, 2023
5ba5595
fix: More Configuration Fixes (#173)
danielbankhead Nov 2, 2023
ce70ce7
chore(main): release 2.0.3 (#169)
release-please[bot] Nov 2, 2023
fcba822
chore(deps): update dependency @types/tmp to v0.2.6 (#177)
renovate-bot Nov 17, 2023
50c0f92
chore(deps): update dependency c8 to v9 (#180)
renovate-bot Feb 6, 2024
07d3abe
build(deps): bump ip from 2.0.0 to 2.0.1 (#181)
dependabot[bot] Jun 6, 2024
4dc2cf8
chore: update dependencies causing type errors (#191)
sofisl Jun 12, 2024
c5daa08
fix(deps): update dependency tmp to v0.2.3 (#183)
renovate-bot Jun 19, 2024
123255c
chore: update links in github issue templates (#195)
gcf-owl-bot[bot] Oct 23, 2024
71192f7
feat: allow synthetic default imports when testing typescript for esm…
sofisl Dec 5, 2024
b31a6d1
chore(main): release 2.1.0 (#193)
release-please[bot] Dec 6, 2024
1a41130
Revert "feat: allow synthetic default imports when testing typescript…
d-goog Mar 10, 2025
6ba831e
chore!: fix `npm` for Node v18 samples tests (#202)
gcf-owl-bot[bot] Mar 11, 2025
c21dfaf
chore(main): release 3.0.0 (#207)
release-please[bot] Mar 11, 2025
e1638e2
fix: update pack-n-play to 2023 compiler option to match gts (#210)
sofisl Apr 2, 2025
611a678
chore(main): release 3.0.1 (#211)
release-please[bot] Apr 2, 2025
f104f4b
Merge remote-tracking branch 'migration/main' into pack-n-play-migration
miguelvelezsa Sep 17, 2025
d4b5a33
build: add release-please config, fix owlbot-config
miguelvelezsa Sep 17, 2025
5b3d795
chore: move pack-n-play to dev_packages
miguelvelezsa Sep 17, 2025
ad0044c
feat: remove gts extends in tsconfig
miguelvelezsa Sep 17, 2025
8a1265e
fix: tsconfig file
miguelvelezsa Sep 17, 2025
8c23ed0
feat: add workspace config
miguelvelezsa Sep 17, 2025
f440dba
chore: change dev_packages to dev-packages and remove credentials fro…
miguelvelezsa Sep 17, 2025
280a5f1
chore: change filenames and name of ci/export
miguelvelezsa Sep 17, 2025
8be5ccd
fix: ci triggers
miguelvelezsa Sep 17, 2025
df651dc
chore: export triggers
miguelvelezsa Sep 18, 2025
8ac8137
fix: remove packages from run conditional test
miguelvelezsa Sep 18, 2025
f909e9d
fix: samples and system tests
miguelvelezsa Sep 18, 2025
926ae8e
feat: stop using pnpm in run conditional test
miguelvelezsa Sep 18, 2025
02c0ed4
fix: add prelint and lint in ws package.json
miguelvelezsa Sep 18, 2025
97657da
fix: add npm install in conditional test
miguelvelezsa Sep 19, 2025
a3f607c
fix: remove --prod in run single test file to install devDependencies
miguelvelezsa Sep 19, 2025
f751b10
fix: lint command in pack-n-play to support when running from ws
miguelvelezsa Sep 19, 2025
f720ff5
fix: samples test command in WS package.json
miguelvelezsa Sep 19, 2025
0655b1c
fix: npm command in run single test
miguelvelezsa Sep 19, 2025
81a6d8e
fix: rest dep should be less than 22
miguelvelezsa Sep 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@octokit/rest": "^22.0.0",
"@octokit/rest": "^19.0.0",
"mocha": "^11.0.0",
"sinon": "^21.0.0"
}
Expand Down
Empty file added .release-please-manifest.json
Empty file.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
createTime: '2022-08-05T20:10:57.660562803Z'
description: Continuous build with node 18
description: Continuous build with node gcnc
filename: ci/cloudbuild_with_credentials.yaml
github:
name: google-cloud-node-core
owner: googleapis
push:
branch: ^main$
id: 60bcf576-538e-45a8-ba92-b1b488afbf51
name: samples-continuous-node18-with-credentials
name: gcnc-samples-continuous-node-with-credentials
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
_BUILD_TYPE: continuous
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
createTime: '2022-08-05T20:10:57.660562803Z'
description: Continuous build with node 18
filename: ci/cloudbuild.yaml
createTime: '2025-09-18T18:59:48.419617959Z'
description: Continuous build with node
filename: ci/gcnc-cloudbuild.yaml
github:
name: google-cloud-node-core
owner: googleapis
push:
branch: ^main$
id: 60bcf576-538e-45a8-ba92-b1b488afbf51
name: samples-continuous-node18
resourceName: projects/long-door-651/locations/global/triggers/60bcf576-538e-45a8-ba92-b1b488afbf51
id: 6d4bac54-3cc5-4178-af9e-a0e220dfe95e
name: gcnc-samples-continuous-node
resourceName: projects/long-door-651/locations/global/triggers/6d4bac54-3cc5-4178-af9e-a0e220dfe95e
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
_BUILD_TYPE: continuous
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
createTime: '2022-08-05T20:10:58.882437677Z'
description: Nightly build with node 18
gitFileSource:
path: ci/cloudbuild_with_credentials.yaml
repoType: GITHUB
revision: refs/heads/main
uri: https://github.com/googleapis/google-cloud-node-core
id: 25a89188-0ae6-4faf-9131-9b1e3c8b9720
name: samples-nightly-node18-with-credentials
uri: https://github.com/googleapis/google-cloud-node-coreid: 25a89188-0ae6-4faf-9131-9b1e3c8b9720
name: gcnc-samples-nightly-node-with-credentials
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
sourceToBuild:
ref: refs/heads/main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
createTime: '2022-08-05T20:10:58.882437677Z'
description: Nightly build with node 18
gitFileSource:
path: ci/cloudbuild.yaml
repoType: GITHUB
revision: refs/heads/main
uri: https://github.com/googleapis/google-cloud-node-core
id: 25a89188-0ae6-4faf-9131-9b1e3c8b9720
name: samples-nightly-node18
uri: https://github.com/googleapis/google-cloud-node-coreid: 25a89188-0ae6-4faf-9131-9b1e3c8b9720
name: gcnc-samples-nightly-node
resourceName: projects/long-door-651/locations/global/triggers/25a89188-0ae6-4faf-9131-9b1e3c8b9720
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
sourceToBuild:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
createTime: '2022-12-20T00:38:41.361644100Z'
description: Presubmit build with node 18
filename: ci/cloudbuild_with_credentials.yaml
github:
Expand All @@ -7,9 +6,8 @@ github:
pullRequest:
branch: ^main$
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
id: 1686933b-458b-4b12-93bd-3c579c0a274d
includeBuildLogs: INCLUDE_BUILD_LOGS_WITH_STATUS
name: samples-presubmit-node18-with-credentials
name: gcnc-samples-presubmit-node-with-credentials
resourceName: projects/long-door-651/locations/global/triggers/1686933b-458b-4b12-93bd-3c579c0a274d
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
createTime: '2022-12-09T00:51:41.619581321Z'
createTime: '2025-09-18T18:59:46.989696345Z'
description: Presubmit build with node 18
filename: ci/cloudbuild.yaml
github:
Expand All @@ -7,10 +7,10 @@ github:
pullRequest:
branch: ^main$
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
id: 7a1731ed-56ef-41b2-ad8e-d24d28b2c789
id: 5e222c6e-5107-46e6-9397-d6a7d7277bc2
includeBuildLogs: INCLUDE_BUILD_LOGS_WITH_STATUS
name: samples-presubmit-node18
resourceName: projects/long-door-651/locations/global/triggers/7a1731ed-56ef-41b2-ad8e-d24d28b2c789
name: gcnc-samples-presubmit-node
resourceName: projects/long-door-651/locations/global/triggers/5e222c6e-5107-46e6-9397-d6a7d7277bc2
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
_BUILD_TYPE: presubmit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
createTime: '2022-06-22T20:37:15.591560546Z'
createTime: '2025-09-18T18:59:44.053456230Z'
description: Continuous build with node 18
filename: ci/cloudbuild.yaml
github:
name: google-cloud-node-core
owner: googleapis
push:
branch: ^main$
id: d05bbe17-fb41-4a39-9be2-3210779da9fb
name: system-continuous-node18
resourceName: projects/long-door-651/locations/global/triggers/d05bbe17-fb41-4a39-9be2-3210779da9fb
id: e0dc1c0a-aac4-49c0-ba4c-78fdafdea75e
name: gcnc-system-continuous-node
resourceName: projects/long-door-651/locations/global/triggers/e0dc1c0a-aac4-49c0-ba4c-78fdafdea75e
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
_BUILD_TYPE: continuous
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
createTime: '2022-06-22T20:37:16.583211868Z'
createTime: '2025-09-18T18:59:45.514768458Z'
description: Nightly build with node 18
gitFileSource:
path: ci/cloudbuild.yaml
repoType: GITHUB
revision: refs/heads/main
uri: https://github.com/googleapis/google-cloud-node-core
id: 99dfe29e-f360-4f08-a026-2cbd7c24cd41
name: system-nightly-node18
resourceName: projects/long-door-651/locations/global/triggers/99dfe29e-f360-4f08-a026-2cbd7c24cd41
id: 51a3532e-42b5-452f-acd5-b286fd57cd1d
name: gcnc-system-nightly-node
resourceName: projects/long-door-651/locations/global/triggers/51a3532e-42b5-452f-acd5-b286fd57cd1d
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
sourceToBuild:
ref: refs/heads/main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
createTime: '2022-06-22T20:37:14.244765001Z'
createTime: '2025-09-18T18:59:42.228485468Z'
description: Presubmit build with node 18
filename: ci/cloudbuild.yaml
github:
Expand All @@ -7,10 +7,10 @@ github:
pullRequest:
branch: ^main$
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
id: 28cdf776-546a-430e-b5ed-94cbbbcf493f
id: fde91b53-a2f5-4b0b-b1ae-b8c193c8365e
includeBuildLogs: INCLUDE_BUILD_LOGS_WITH_STATUS
name: system-presubmit-node18
resourceName: projects/long-door-651/locations/global/triggers/28cdf776-546a-430e-b5ed-94cbbbcf493f
name: gcnc-system-presubmit-node
resourceName: projects/long-door-651/locations/global/triggers/fde91b53-a2f5-4b0b-b1ae-b8c193c8365e
serviceAccount: projects/long-door-651/serviceAccounts/kokoro-system-test@long-door-651.iam.gserviceaccount.com
substitutions:
_BUILD_TYPE: presubmit
Expand Down
35 changes: 14 additions & 21 deletions ci/export_triggers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,23 @@
# with a non-zero
set -eo pipefail

NODE_VERSIONS=(
"18"
)

echo "change directory to the project root"
export PROJECT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)
pushd ${PROJECT_ROOT}
pwd

echo "exporting Cloud Build triggers"

for NODE_VERSION in ${NODE_VERSIONS[@]}; do
echo "exporting presubmit build for node${NODE_VERSION}"
gcloud beta builds triggers export "system-presubmit-node${NODE_VERSION}" --destination "ci/export/system-presubmit-node${NODE_VERSION}.yaml"
echo "exporting continuous build for node${NODE_VERSION}"
gcloud beta builds triggers export "system-continuous-node${NODE_VERSION}" --destination "ci/export/system-continuous-node${NODE_VERSION}.yaml"
echo "exporting nightly build for node${NODE_VERSION}"
gcloud beta builds triggers export "system-nightly-node${NODE_VERSION}" --destination "ci/export/system-nightly-node${NODE_VERSION}.yaml"
echo "exporting presubmit build for node${NODE_VERSION}"
gcloud beta builds triggers export "samples-presubmit-node${NODE_VERSION}" --destination "ci/export/samples-presubmit-node${NODE_VERSION}.yaml"
echo "exporting continuous build for node${NODE_VERSION}"
gcloud beta builds triggers export "samples-continuous-node${NODE_VERSION}" --destination "ci/export/samples-continuous-node${NODE_VERSION}.yaml"
echo "exporting nightly build for node${NODE_VERSION}"
gcloud beta builds triggers export "samples-nightly-node${NODE_VERSION}" --destination "ci/export/samples-nightly-node${NODE_VERSION}.yaml"
echo "exporting presubmit build for node${NODE_VERSION} with credentials"
gcloud beta builds triggers export "samples-presubmit-node${NODE_VERSION}-with-credentials" --destination "ci/export/samples-presubmit-node${NODE_VERSION}-with-credentials.yaml"
done
echo "exporting presubmit build for node"
gcloud beta builds triggers export "gcnc-system-presubmit-node" --destination "ci/export/gcnc-system-presubmit-node.yaml"
echo "exporting continuous build for node"
gcloud beta builds triggers export "gcnc-system-continuous-node" --destination "ci/export/gcnc-system-continuous-node.yaml"
echo "exporting nightly build for node"
gcloud beta builds triggers export "gcnc-system-nightly-node" --destination "ci/export/gcnc-system-nightly-node.yaml"
echo "exporting presubmit build for node"
gcloud beta builds triggers export "gcnc-samples-presubmit-node" --destination "ci/export/gcnc-samples-presubmit-node.yaml"
echo "exporting continuous build for node"
gcloud beta builds triggers export "gcnc-samples-continuous-node" --destination "ci/export/gcnc-samples-continuous-node.yaml"
echo "exporting nightly build for node"
gcloud beta builds triggers export "gcnc-samples-nightly-node" --destination "ci/export/gcnc-samples-nightly-node.yaml"
echo "exporting presubmit build for node with credentials"
gcloud beta builds triggers export "gcnc-samples-presubmit-node-with-credentials" --destination "ci/export/gcnc-samples-presubmit-node-with-credentials.yaml"
35 changes: 14 additions & 21 deletions ci/import_triggers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,23 @@
# with a non-zero
set -eo pipefail

NODE_VERSIONS=(
"18"
)

echo "change directory to the project root"
export PROJECT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)
pushd ${PROJECT_ROOT}
pwd

echo "importing Cloud Build triggers"

for NODE_VERSION in ${NODE_VERSIONS[@]}; do
echo "importing presubmit build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/system-presubmit-node${NODE_VERSION}.yaml"
echo "importing continuous build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/system-continuous-node${NODE_VERSION}.yaml"
echo "importing nightly build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/system-nightly-node${NODE_VERSION}.yaml"
echo "importing presubmit build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/samples-presubmit-node${NODE_VERSION}.yaml"
echo "importing continuous build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/samples-continuous-node${NODE_VERSION}.yaml"
echo "importing nightly build for node${NODE_VERSION}"
gcloud beta builds triggers import --source "ci/export/samples-nightly-node${NODE_VERSION}.yaml"
echo "importing presubmit build for node${NODE_VERSION} with credentials"
gcloud beta builds triggers import --source "ci/export/samples-presubmit-node${NODE_VERSION}-with-credentials.yaml"
done
echo "importing presubmit build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-system-presubmit-node.yaml"
echo "importing continuous build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-system-continuous-node.yaml"
echo "importing nightly build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-system-nightly-node.yaml"
echo "importing presubmit build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-samples-presubmit-node.yaml"
echo "importing continuous build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-samples-continuous-node.yaml"
echo "importing nightly build for node"
gcloud beta builds triggers import --source "ci/export/gcnc-samples-nightly-node.yaml"
echo "importing presubmit build for node with credentials"
gcloud beta builds triggers import --source "ci/export/gcnc-samples-presubmit-node-with-credentials.yaml"
7 changes: 1 addition & 6 deletions ci/run_conditional_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,11 @@ fi
# necessary.

subdirs=(
containers
packages
dev-packages
.github/scripts
)

RETVAL=0
# These following APIs need an explicit credential file to run properly (or oAuth2, which we don't support in this repo).
# When we hit these packages, we will run the "samples with credentials" trigger, which contains the credentials as an env variable

tests_with_credentials="packages/google-analytics-admin/ packages/google-area120-tables/ packages/google-analytics-data/ packages/google-iam-credentials/ packages/google-apps-meet/ packages/google-chat/ packages/google-streetview-publish/ packages/google-cloud-developerconnect/"

for subdir in ${subdirs[@]}; do
for d in `ls -d ${subdir}/*/`; do
Expand Down
14 changes: 7 additions & 7 deletions ci/run_single_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@ if [ ${BUILD_TYPE} != "presubmit" ]; then
fi

# Install dependencies
echo "pnpm install --ignore-scripts --engine-strict --prod; pnpm install"
pnpm install --ignore-scripts --engine-strict --prod; pnpm install
echo "npm install --ignore-scripts --engine-strict; npm install"
npm install --ignore-scripts --engine-strict; npm install


retval=0

set +e
case ${TEST_TYPE} in
lint)
pnpm prelint
pnpm lint
npm run prelint
npm run lint
retval=$?
;;
samples)
pnpm samples-test
npm run samples-test
retval=$?
;;
system)
pnpm system-test
npm run system-test
retval=$?
;;
units)
pnpm test
npm run test
retval=$?
;;
*)
Expand Down
15 changes: 15 additions & 0 deletions dev-packages/pack-n-play/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

begin-after-commit-hash: 1c4941e9dc12d0c87c845996a51febd44d716c44
8 changes: 8 additions & 0 deletions dev-packages/pack-n-play/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
system-test/**/fixtures
3 changes: 3 additions & 0 deletions dev-packages/pack-n-play/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts"
}
4 changes: 4 additions & 0 deletions dev-packages/pack-n-play/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
5 changes: 5 additions & 0 deletions dev-packages/pack-n-play/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
node_modules
.nyc_output
.coverage/*
test/fixtures/**/package-lock.json
33 changes: 33 additions & 0 deletions dev-packages/pack-n-play/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const config = {
'enable-source-maps': true,
'throw-deprecation': true,
timeout: 10 * 60 * 1000,
recursive: true,
};

if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}

if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}

if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}

module.exports = config;
Loading