Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 9c1b42a

Browse files
committed
Add CI, Linter and CodeQL actions
1 parent 141e8bf commit 9c1b42a

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2
10+
with:
11+
node-version: 15
12+
13+
- name: Install nodejs dependencies
14+
run: npm ci
15+
16+
- name: Build TS
17+
run: npm run build

.github/workflows/codeql.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Default configuration as generated by the github ui (security -> code scanning -> setup) (minus unneeded stuff like autobuild)
2+
name: "CodeQL"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
schedule:
12+
- cron: "28 22 * * 3"
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language: ["javascript"]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v1
30+
with:
31+
languages: ${{ matrix.language }}
32+
queries: +security-and-quality
33+
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v1

.github/workflows/lint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Linter
2+
3+
on: pull_request
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: 15
13+
14+
- name: Install dependencies
15+
run: npm i
16+
17+
- name: Run ESLint
18+
run: npm run lint

0 commit comments

Comments
 (0)