Skip to content

Commit 2f19a39

Browse files
authored
2nd gen overhaul (#1075)
Rearrange samples per language/runtime
1 parent 7f3d833 commit 2f19a39

File tree

623 files changed

+11850
-11174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

623 files changed

+11850
-11174
lines changed

.github/ISSUE_TEMPLATE/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
216

317
blank_issues_enabled: false

.github/workflows/test.yml

-33
This file was deleted.

.github/workflows/test_node.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: CI Tests
16+
17+
on:
18+
pull_request:
19+
paths:
20+
- 'Node/**'
21+
- 'Node-1st-gen/**'
22+
- 'package.json'
23+
- 'package-lock.json'
24+
- 'pnpm-workspace.yaml'
25+
- 'pnpm-lock.yaml'
26+
- 'tsconfig.template.json'
27+
push:
28+
paths:
29+
- 'Node/**'
30+
- 'Node-1st-gen/**'
31+
- 'package.json'
32+
- 'package-lock.json'
33+
- 'pnpm-workspace.yaml'
34+
- 'pnpm-lock.yaml'
35+
- 'tsconfig.template.json'
36+
37+
env:
38+
CI: true
39+
40+
jobs:
41+
unit:
42+
runs-on: ubuntu-latest
43+
strategy:
44+
matrix:
45+
node-version:
46+
- 18.x
47+
steps:
48+
- uses: actions/checkout@v3
49+
- uses: actions/setup-node@v3
50+
with:
51+
node-version: ${{ matrix.node-version }}
52+
53+
- name: Cache npm
54+
uses: actions/cache@v3
55+
with:
56+
path: ~/.npm
57+
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
58+
59+
- run: npm install
60+
- run: npm run bootstrap
61+
- run: npm run lint
62+
- run: npm run compile
63+
- run: npm run test

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ service-account-credentials.json
1515
**/firebase-debug.log
1616
**/pubsub-debug.log
1717
**/tsconfig-compile.json
18-
yarn.lock
18+
yarn.lock
19+
**/.DS_Store

2nd-gen/alerts-to-discord/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/app-distribution-feedback-to-jira/functions/.eslintrc.cjs

-18
This file was deleted.

2nd-gen/auth-blocking-functions/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/callable-functions/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/custom-events/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/delete-unused-accounts-cron/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/instrument-with-opentelemetry/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/instrument-with-opentelemetry/functions/timer.js

-17
This file was deleted.

2nd-gen/monitor-cloud-logging/functions/.eslintrc.js

-28
This file was deleted.

2nd-gen/pubsub-helloworld/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/remote-config-diff/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/taskqueues-backup-images/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/test-complete/functions/.eslintrc.js

-14
This file was deleted.

2nd-gen/test-functions-jest-ts/functions/jest.config.js

-5
This file was deleted.

2nd-gen/test-functions-jest-ts/functions/src/index.ts

-6
This file was deleted.

2nd-gen/test-functions-jest/functions/.eslintrc.js

-15
This file was deleted.

2nd-gen/test-functions-jest/functions/index.js

-6
This file was deleted.

2nd-gen/test-functions-jest/functions/index.test.js

-17
This file was deleted.

0 commit comments

Comments
 (0)