File tree Expand file tree Collapse file tree 3 files changed +102
-16
lines changed
Expand file tree Collapse file tree 3 files changed +102
-16
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+ schedule :
11+ - cron : ' 45 21 * * 2'
12+
13+ jobs :
14+ analyze :
15+ name : Analyze
16+ runs-on : ubuntu-20.04
17+
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ language :
22+ - 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+
33+ - name : Autobuild
34+ uses : github/codeql-action/autobuild@v1
35+
36+ - name : Perform CodeQL Analysis
37+ uses : github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+ name : Build
14+ runs-on : ${{ matrix.os }}
15+
16+ strategy :
17+ matrix :
18+ node-version :
19+ - 14.x
20+ - 12.x
21+ - 10.x
22+ - 8.x
23+ - 6.x
24+ - 4.x
25+ os :
26+ - ubuntu-20.04
27+
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v2
31+
32+ - name : Use Node.js ${{ matrix.node-version }}
33+ uses : actions/setup-node@v1
34+ with :
35+ node-version : ${{ matrix.node-version }}
36+
37+ - name : Get npm cache directory
38+ id : npm-cache
39+ run : |
40+ echo "::set-output name=dir::$(npm config get cache)"
41+
42+ - name : Cache npm dependencies
43+ uses : actions/cache@v2
44+ with :
45+ path : ${{ steps.npm-cache.outputs.dir }}
46+ key : ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
47+ restore-keys : |
48+ ${{ matrix.os }}-node-${{ matrix.node-version }}-
49+
50+ - name : Install npm dependencies
51+ run : npm install
52+
53+ - name : Copy example config
54+ run : cp config.js.example config.js
55+
56+ - name : Lint
57+ run : npm run lint
58+
59+ - name : Test
60+ run : npm test
61+ env :
62+ CI : true
63+
64+ - name : Webpack
65+ run : ./node_modules/.bin/webpack
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments