Skip to content

Commit 7af1716

Browse files
committed
chore: Synced local '.github/' with remote 'sync-files/js/.github/'
1 parent ab85e07 commit 7af1716

File tree

4 files changed

+89
-4
lines changed

4 files changed

+89
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ on: [push, pull_request]
1717
jobs:
1818
test:
1919
runs-on: ubuntu-latest
20-
steps:
20+
steps:
21+
- uses: actions/checkout@v2
2122
- uses: actions/cache@v2
2223
with:
2324
path: ~/.npm
2425
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2526
restore-keys: |
2627
${{ runner.os }}-node-
27-
- uses: actions/checkout@v2
2828
- run: npm i
2929
- run: npm run lint
3030
- run: npm test

.github/workflows/codeql.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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+
# 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+
#
26+
name: "CodeQL"
27+
28+
on:
29+
push:
30+
branches: [main]
31+
pull_request:
32+
# The branches below must be a subset of the branches above
33+
branches: [main]
34+
schedule:
35+
- cron: "0 13 * * *"
36+
37+
jobs:
38+
analyze:
39+
name: Analyze
40+
runs-on: ubuntu-latest
41+
permissions:
42+
actions: read
43+
contents: read
44+
security-events: write
45+
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+
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v2
57+
58+
# Initializes the CodeQL tools for scanning.
59+
- name: Initialize CodeQL
60+
uses: github/codeql-action/init@v1
61+
with:
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
83+
84+
- name: Perform CodeQL Analysis
85+
uses: github/codeql-action/analyze@v1

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
test:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/checkout@v2
2122
- uses: actions/cache@v2
2223
with:
2324
path: ~/.npm
2425
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2526
restore-keys: |
2627
${{ runner.os }}-node-
27-
- uses: actions/checkout@v2
2828
- run: |
2929
npm i
3030
npm run docs

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
build:
2323
runs-on: ubuntu-latest
2424
steps:
25+
- uses: actions/checkout@v2
2526
- uses: actions/cache@v2
2627
with:
2728
path: ~/.npm
2829
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2930
restore-keys: |
3031
${{ runner.os }}-node-
31-
- uses: actions/checkout@v2
3232
- name: Test
3333
run: |
3434
npm i

0 commit comments

Comments
 (0)