Skip to content

Commit 5970c0c

Browse files
committed
Merge branch 'main' into migrate-layer-transit
2 parents 4b4a6f1 + e33bcdc commit 5970c0c

2,602 files changed

Lines changed: 322086 additions & 86438 deletions

File tree

Some content is hidden

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

.github/blunderbuss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
assign_issues:
1616
- googlemaps/devrel
1717
assign_prs:
18-
- googlemaps/devrel
18+
- googlemaps/devrel

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ updates:
2020
interval: "weekly"
2121
ignore:
2222
- dependency-name: "three"
23-
- dependency-name: "@types/three"
23+
- dependency-name: "@types/three"

.github/header-checker-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ sourceFileExtensions:
1414
- .sh
1515
- .swift
1616
- .ts
17-
- .yml
17+
- .yml

.github/snippet-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
alwaysCreateStatusCheck: true
22
ignoreFiles:
3-
- "samples/*.sh"
3+
- "samples/*.sh"

.github/workflows/approve-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
ref: ${{ github.event.pull_request.head.ref }} # Checkout the PR's head commit
3838
token: ${{ secrets.GH_MERGE_TOKEN }}
39-
39+
4040
- name: Approve PR
4141
run: gh pr review --approve "$PR_URL"
4242
env:

.github/workflows/dist-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
workflow_dispatch:
1919
inputs:
2020
source_run_id:
21-
description: 'ID of the upstream workflow run that triggered this'
21+
description: "ID of the upstream workflow run that triggered this"
2222
required: false
2323
type: string
2424

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
branches:
2020
- main
2121
paths:
22-
- 'samples/**'
22+
- "samples/**"
2323

2424
jobs:
2525
release:
@@ -51,7 +51,7 @@ jobs:
5151
5252
- uses: actions/setup-node@v4
5353
with:
54-
node-version: '24.x'
54+
node-version: "24.x"
5555

5656
- run: npm i
5757

@@ -93,7 +93,7 @@ jobs:
9393
echo " - samples/$workspace"
9494
rm -rf dist/samples/$workspace
9595
done
96-
96+
9797
- name: Generate Index
9898
run: bash samples/generate-index.sh
9999

@@ -130,6 +130,6 @@ jobs:
130130
uses: benc-uk/workflow-dispatch@v1
131131
with:
132132
workflow: dist-pr.yml
133-
ref: 'temp-build-branch'
133+
ref: "temp-build-branch"
134134
token: ${{ secrets.GH_APPROVER_TOKEN }} # Use the same token that pushed, it needs 'workflows: write' permissions
135135
inputs: '{ "source_run_id": "${{ github.run_id }}" }' # Optional: Pass the run ID for traceability
Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Playwright Tests
15+
name: Tests
1616

1717
on:
1818
pull_request:
1919
types: [opened, synchronize, edited]
2020
paths:
21-
- 'samples/**'
22-
- 'e2e/samples.spec.ts'
23-
- 'playwright.config.ts'
24-
- 'package.json'
21+
- "samples/**"
22+
- "e2e/samples.spec.ts"
23+
- "playwright.config.ts"
24+
- "package.json"
2525
push:
2626
branches:
2727
- main
2828
paths:
29-
- 'samples/**'
30-
- 'e2e/samples.spec.ts'
31-
- 'playwright.config.ts'
32-
- 'package.json'
29+
- "samples/**"
30+
- "e2e/samples.spec.ts"
31+
- "playwright.config.ts"
32+
- "package.json"
3333
schedule:
3434
- cron: "0 12 * * *"
3535

@@ -74,7 +74,7 @@ jobs:
7474
if: env.HAS_CHANGES == 'true'
7575
uses: actions/setup-node@v4
7676
with:
77-
node-version: '24.x'
77+
node-version: "24.x"
7878

7979
- name: Cache npm dependencies
8080
if: env.HAS_CHANGES == 'true'
@@ -108,17 +108,29 @@ jobs:
108108
if: env.HAS_CHANGES == 'true'
109109
run: npm install
110110

111+
- name: Prettier Check
112+
if: env.HAS_CHANGES == 'true'
113+
run: npx prettier ./samples/ --check --log-level warn
114+
env:
115+
CI: true
116+
117+
- name: ESLint Check
118+
if: env.HAS_CHANGES == 'true'
119+
run: npx eslint
120+
env:
121+
CI: true
122+
111123
- name: Install Playwright Browsers
112124
if: steps.playwright-cache.outputs.cache-hit != 'true' && env.HAS_CHANGES == 'true'
113125
run: npx playwright install chromium --with-deps
114-
126+
115127
- name: Build Changed Workspaces
116128
if: env.HAS_CHANGES == 'true'
117129
run: |
118130
IFS=$'\n'
119131
CHANGED_WORKSPACES_ARRAY=(${STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES})
120132
echo "Changed Workspaces Array: ${CHANGED_WORKSPACES_ARRAY[@]}"
121-
133+
122134
echo "Building changed workspaces:"
123135
for workspace in "${CHANGED_WORKSPACES_ARRAY[@]}"; do
124136
echo " - samples/$workspace"
@@ -162,7 +174,7 @@ jobs:
162174
- name: Setup Node.js
163175
uses: actions/setup-node@v4
164176
with:
165-
node-version: '24.x'
177+
node-version: "24.x"
166178

167179
- name: Cache npm dependencies
168180
uses: actions/cache@v4
@@ -211,10 +223,3 @@ jobs:
211223
with:
212224
name: Test Results
213225
path: test-results/
214-
215-
- name: Create Issue on Failure
216-
if: failure()
217-
run: |
218-
gh issue create --title "Nightly Playwright Tests Failed" --body "The nightly E2E tests failed. Please check the logs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
219-
env:
220-
GH_TOKEN: ${{ github.token }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ samples/.env
66

77
# Ignore dist files generated by build.
88
samples/*/dist/
9-
samples/**/*.js
9+
samples/*/*.js
1010

1111
# Ignore playwright outputs
1212
/test-results/

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/index.html
2+
package.json
3+
package-lock.json
4+
dist
5+
samples/*/*.js

0 commit comments

Comments
 (0)