Skip to content

Commit 9b7f7cd

Browse files
Merge pull request #11 from wimpyprogrammer/feature/security-scan
Add security scan workflow
2 parents 8b81330 + 7bae062 commit 9b7f7cd

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Security Scan
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
schedule:
9+
# 13:44 on Saturdays
10+
- cron: '44 13 * * 6'
11+
workflow_dispatch:
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: ['javascript']
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
with:
30+
languages: ${{ matrix.language }}
31+
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v1
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v1

.github/workflows/tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,41 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main, develop ]
7+
branches: [main, develop]
88
schedule:
99
# 00:00 on Saturdays
10-
- cron: '0 0 * * SAT'
10+
- cron: '0 0 * * SAT'
1111
workflow_dispatch:
1212

1313
jobs:
1414
test:
15+
name: Test
1516
runs-on: ubuntu-latest
1617

1718
strategy:
19+
fail-fast: false
1820
matrix:
1921
node-version: [10.x, 14.x]
2022

2123
steps:
22-
- uses: actions/checkout@v2
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
2326
with:
2427
fetch-depth: '2'
2528

2629
- name: Test on Node ${{ matrix.node-version }}
2730
uses: actions/setup-node@v1
2831
with:
2932
node-version: ${{ matrix.node-version }}
33+
3034
- run: npm install
3135
- run: npm run lint
36+
- run: npm run lint-demo
37+
- run: npm run build
38+
- run: npm run build-demo
39+
- run: npm run build-types
3240
- run: npm run test
3341

3442
- name: Upload test coverage report to Codecov

0 commit comments

Comments
 (0)