Skip to content

Commit 5475e5b

Browse files
chore: Synced local '.github/' with remote 'sync-files/js/.github/'
1 parent f83620b commit 5475e5b

File tree

6 files changed

+99
-23
lines changed

6 files changed

+99
-23
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,4 @@
1414

1515
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
1616

17-
# Specific to the repository
18-
19-
# GitHub specific processes
2017
.github/ @googlemaps/admin
21-
22-
# Developer experience related
23-
LICENSE @googlemaps/admin
24-
SECURITY.md @googlemaps/admin
25-
CONTRIBUTING.md @googlemaps/admin

.github/workflows/codeql.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2021 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
# For most projects, this workflow file will not need changing; you simply need
1516
# to commit it to your repository.
1617
#
@@ -23,6 +24,7 @@
2324
# supported CodeQL languages.
2425
#
2526
name: "CodeQL"
27+
2628
on:
2729
push:
2830
branches: [main]
@@ -31,6 +33,7 @@ on:
3133
branches: [main]
3234
schedule:
3335
- cron: "0 13 * * *"
36+
3437
jobs:
3538
analyze:
3639
name: Analyze
@@ -39,16 +42,19 @@ jobs:
3942
actions: read
4043
contents: read
4144
security-events: write
45+
4246
strategy:
4347
fail-fast: false
4448
matrix:
4549
language: ["javascript"]
4650
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
4751
# Learn more:
4852
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
53+
4954
steps:
5055
- name: Checkout repository
5156
uses: actions/checkout@v2
57+
5258
# Initializes the CodeQL tools for scanning.
5359
- name: Initialize CodeQL
5460
uses: github/codeql-action/init@v1
@@ -58,17 +64,22 @@ jobs:
5864
# By default, queries listed here will override any specified in a config file.
5965
# Prefix the list here with "+" to use these queries and those in the config file.
6066
# queries: ./path/to/local/query, your-org/your-repo/queries@main
67+
6168
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6269
# If this step fails, then you should remove it and run the build manually (see below)
6370
- name: Autobuild
6471
uses: github/codeql-action/autobuild@v1
65-
# Command-line programs to run using the OS shell.
66-
# https://git.io/JvXDl
67-
# If the Autobuild fails above, remove it and uncomment the following three lines
72+
73+
# ℹ️ Command-line programs to run using the OS shell.
74+
# 📚 https://git.io/JvXDl
75+
76+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
6877
# and modify them (or add more) to build your code if your project
6978
# uses a compiled language
79+
7080
#- run: |
7181
# make bootstrap
7282
# make release
83+
7384
- name: Perform CodeQL Analysis
7485
uses: github/codeql-action/analyze@v1

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2021 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: Docs
16+
on: [push, pull_request]
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: |
29+
npm i
30+
npm run docs
31+
- uses: peaceiris/actions-gh-pages@v3
32+
if: github.ref == 'refs/heads/main'
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./docs
36+
user_name: 'googlemaps-bot'
37+
user_email: '[email protected]'
38+
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/package.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2021 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: Package
16+
on:
17+
- push
18+
- pull_request
19+
jobs:
20+
package:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- run: npm i
25+
- uses: jpoehnelt/verify-npm-files-action@main
26+
with:
27+
keys: |
28+
types
29+
main
30+
module

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2021 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
name: Release
1516
on:
1617
push:
@@ -23,7 +24,7 @@ jobs:
2324
steps:
2425
- uses: actions/setup-node@v2
2526
with:
26-
node-version: "14"
27+
node-version: '14'
2728
- name: Checkout
2829
uses: actions/checkout@v3
2930
with:
@@ -36,13 +37,12 @@ jobs:
3637
${{ runner.os }}-node-
3738
- name: Test
3839
run: |
39-
npm ci
40+
npm i
4041
npm run lint
4142
npm test
4243
- name: Release
4344
uses: cycjimmy/semantic-release-action@v2
4445
with:
45-
# TODO consider using https://github.com/google/semantic-release-replace-plugin
4646
extra_plugins: |
4747
@semantic-release/commit-analyzer
4848
semantic-release-interval

.github/workflows/test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2021 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,16 +11,21 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
name: Test
1516
on: [push, pull_request]
1617
jobs:
1718
test:
1819
runs-on: ubuntu-latest
19-
steps:
20+
steps:
2021
- uses: actions/checkout@v2
21-
- name: Test
22-
run: |
23-
npm ci
24-
npm run lint
25-
npm test
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: npm i
29+
- run: npm run lint
30+
- run: npm test
2631
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)