Skip to content

Commit 9bc134c

Browse files
chore: Synced local '.github/' with remote 'sync-files/js/.github/'
1 parent 0ef04eb commit 9bc134c

File tree

5 files changed

+155
-49
lines changed

5 files changed

+155
-49
lines changed

.github/workflows/codeql.yml

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,24 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
## Runs CodeQL analysis for all PRs, merges into main and daily.
16-
15+
# For most projects, this workflow file will not need changing; you simply need
16+
# to commit it to your repository.
17+
#
18+
# You may wish to alter this file to override the set of languages analyzed,
19+
# or to provide custom queries or build logic.
20+
#
21+
# ******** NOTE ********
22+
# We have attempted to detect the languages in your repository. Please check
23+
# the `language` matrix defined below to confirm you have the correct set of
24+
# supported CodeQL languages.
25+
#
1726
name: "CodeQL"
1827

1928
on:
2029
push:
2130
branches: [main]
2231
pull_request:
32+
# The branches below must be a subset of the branches above
2333
branches: [main]
2434
schedule:
2535
- cron: "0 13 * * *"
@@ -33,15 +43,43 @@ jobs:
3343
contents: read
3444
security-events: write
3545

46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
language: ["javascript"]
50+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
51+
# Learn more:
52+
# 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+
3654
steps:
3755
- name: Checkout repository
38-
uses: actions/checkout@v4
56+
uses: actions/checkout@v2
3957

40-
# Initializes the CodeQL tools for scanning and analyze
58+
# Initializes the CodeQL tools for scanning.
4159
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
60+
uses: github/codeql-action/init@v1
4361
with:
44-
languages: javascript-typescript
62+
languages: ${{ matrix.language }}
63+
# If you wish to specify custom queries, you can do so here or in a config file.
64+
# By default, queries listed here will override any specified in a config file.
65+
# Prefix the list here with "+" to use these queries and those in the config file.
66+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
67+
68+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
69+
# If this step fails, then you should remove it and run the build manually (see below)
70+
- name: Autobuild
71+
uses: github/codeql-action/autobuild@v1
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
77+
# and modify them (or add more) to build your code if your project
78+
# uses a compiled language
79+
80+
#- run: |
81+
# make bootstrap
82+
# make release
4583

4684
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v2
85+
uses: github/codeql-action/analyze@v1

.github/workflows/docs.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,27 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
## Builds the documentation website and deploys it to the gh-pages
16-
## branch for pushes to the main branch.
17-
1815
name: Docs
1916
on: [push, pull_request]
2017
jobs:
2118
test:
2219
runs-on: ubuntu-latest
2320
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
27-
- name: Setup Node
28-
uses: actions/setup-node@v3
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
2923
with:
30-
node-version: 20
31-
cache: npm
32-
33-
- name: Build Documentation
34-
run: |
35-
npm ci
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: |
29+
npm i
3630
npm run docs
37-
38-
- if: github.ref == 'refs/heads/main'
39-
name: Deploy to gh-pages Branch
40-
uses: peaceiris/actions-gh-pages@v3
31+
- uses: peaceiris/actions-gh-pages@v3
32+
if: github.ref == 'refs/heads/main'
4133
with:
4234
github_token: ${{ secrets.GITHUB_TOKEN }}
4335
publish_dir: ./docs
44-
user_name: "googlemaps-bot"
45-
user_email: "[email protected]"
36+
user_name: 'googlemaps-bot'
37+
user_email: '[email protected]'
4638
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: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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: Release
16+
on:
17+
push:
18+
branches:
19+
- main
20+
concurrency: release
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: '14'
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
with:
31+
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
32+
- uses: actions/cache@v2
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-node-
38+
- name: Test
39+
run: |
40+
npm i
41+
npm run lint
42+
npm test
43+
- name: Release
44+
uses: cycjimmy/semantic-release-action@v3
45+
with:
46+
extra_plugins: |
47+
@semantic-release/commit-analyzer
48+
semantic-release-interval
49+
@semantic-release/release-notes-generator
50+
@semantic-release/git
51+
@semantic-release/github
52+
@semantic-release/npm
53+
@googlemaps/semantic-release-config
54+
semantic-release-npm-deprecate
55+
env:
56+
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
57+
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,20 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
## Runs the eslint and jest unit tests for every PR and push.
16-
1715
name: Test
1816
on: [push, pull_request, workflow_call]
1917
jobs:
2018
test:
2119
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
26-
- name: Setup Node
27-
uses: actions/setup-node@v3
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
2823
with:
29-
node-version: 20
30-
cache: npm
31-
32-
- name: Install Dependencies
33-
run: npm ci
34-
35-
- name: Run eslint
36-
run: npm run lint
37-
38-
- name: Run Unit Tests
39-
run: npm test
40-
41-
- name: Run codecov Analysis
42-
uses: codecov/codecov-action@v1
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
31+
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)