Skip to content

Commit 5125b6d

Browse files
authored
Merge branch 'google:master' into master
2 parents 4641f89 + 8adc887 commit 5125b6d

Some content is hidden

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

52 files changed

+20959
-18095
lines changed
Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
1+
# Copyright 2025 The Ground Authors.
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+
# https://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
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
16+
name: Deploy GitHub Pages
317

418
on:
519
# Runs on pushes targeting the default branch
620
push:
721
branches: ["master"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11-
12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
22+
1323
permissions:
1424
contents: read
1525
pages: write
1626
id-token: write
1727

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
23-
2428
jobs:
25-
# Build job
2629
build:
2730
runs-on: ubuntu-latest
2831
steps:
2932
- name: Checkout
3033
uses: actions/checkout@v4
3134
- name: Setup Pages
3235
uses: actions/configure-pages@v5
33-
- name: Build with Jekyll
36+
- name: Build
3437
uses: actions/jekyll-build-pages@v1
3538
with:
36-
source: ./docs
37-
destination: ./_site
39+
source: "./docs"
3840
- name: Upload artifact
3941
uses: actions/upload-pages-artifact@v3
40-
41-
# Deployment job
4242
deploy:
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
4643
runs-on: ubuntu-latest
4744
needs: build
4845
steps:
4946
- name: Deploy to GitHub Pages
5047
id: deployment
51-
uses: actions/upload-pages-artifact@v3
52-
with:
53-
path: ./_site
48+
uses: actions/deploy-pages@v4
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}

functions/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"root": true,
1010
"rules": {
11-
"eqeqeq": ["error", "always", {"null": "ignore"}]
11+
"eqeqeq": ["error", "always", {"null": "ignore"}]
1212
}
1313
}

functions/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"nodemailer": "^6.9.16",
4343
"requests": "0.3.0",
4444
"sanitize-html": "^2.13.1",
45-
"ts-node": "^10.9.1"
45+
"ts-node": "^10.9.2"
4646
},
4747
"engines": {
4848
"node": "20"
@@ -68,7 +68,7 @@
6868
"prettier": "^2.8.1",
6969
"source-map-support": "^0.5.21",
7070
"ts-mocha": "^10.0.0",
71-
"typescript": "4.8.4",
71+
"typescript": "^5.7.3",
7272
"wkt": "0.1.1"
7373
},
7474
"type": "commonjs"

functions/src/handlers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export function onHttpsRequest(handler: HttpsRequestHandler) {
7676
return https.onRequest((req: https.Request, res: Response) =>
7777
corsMiddleware(req, res, () =>
7878
cookieParser()(
79-
req,
80-
res,
79+
req as any,
80+
res as any,
8181
async () =>
8282
await requireIdToken(req, res, async (idToken: DecodedIdToken) => {
8383
try {
@@ -158,8 +158,8 @@ export function onHttpsRequestAsync(callback: HttpsRequestCallback) {
158158
return https.onRequest((req: https.Request, res: Response) =>
159159
corsMiddleware(req, res, () =>
160160
cookieParser()(
161-
req,
162-
res,
161+
req as any,
162+
res as any,
163163
async () =>
164164
await requireIdToken(req, res, async (idToken: DecodedIdToken) => {
165165
await invokeCallbackAsync(callback, req, res, idToken);

functions/src/testing/http-test-helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import functions from 'firebase-functions';
1818
import {buffer} from 'node:stream/consumers';
1919
import {FormDataEncoder} from 'form-data-encoder';
20+
import {FormData} from 'formdata-node';
2021

2122
export async function createPostRequestSpy(
2223
args: object,

lib/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"env": {
44
"jasmine": true
55
},
6-
"root": true,
76
"parser": "@typescript-eslint/parser",
87
"plugins": [
98
"eslint-plugin-absolute-imports"
109
],
10+
"root": true,
1111
"rules": {
12-
"eqeqeq": ["error", "always", {"null": "ignore"}]
12+
"eqeqeq": ["error", "always", {"null": "ignore"}]
1313
}
1414
}

lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"diff": "^5.2.0",
4242
"eslint": "^8.26.0",
4343
"eslint-config-prettier": "^8.5.0",
44-
"eslint-plugin-import": "^2.29.1",
44+
"eslint-plugin-import": "^2.29.0",
4545
"eslint-plugin-prettier": "^4.2.1",
4646
"gts": "^5.3.0",
4747
"jasmine": "^5.1.0",
@@ -51,6 +51,6 @@
5151
"source-map-support": "^0.5.21",
5252
"ts-mocha": "^10.0.0",
5353
"ts-node": "^10.9.2",
54-
"typescript": "4.8.4"
54+
"typescript": "^5.4.5"
5555
}
5656
}

0 commit comments

Comments
 (0)