File tree Expand file tree Collapse file tree 4 files changed +64
-1
lines changed Expand file tree Collapse file tree 4 files changed +64
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies and run the linter
2
+
3
+ name : Node.js CI
4
+
5
+ on :
6
+ push :
7
+ branches : [ master ]
8
+ pull_request :
9
+ branches : [ master ]
10
+
11
+ jobs :
12
+ lint :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Use Node.js 12
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ' 12'
22
+
23
+ - run : npm ci
24
+
25
+ - run : npm run lint
Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies and run the linter
2
+
3
+ name : Node.js CI
4
+
5
+ on :
6
+ push :
7
+ branches : [ master ]
8
+ pull_request :
9
+ branches : [ master ]
10
+
11
+ jobs :
12
+ test :
13
+ runs-on : ubuntu-latest
14
+
15
+ strategy :
16
+ matrix :
17
+ node-version : [10.x, 12.x, 14.x]
18
+
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+
27
+ - run : npm ci
28
+
29
+ - run : npm run test:coverage
30
+
31
+ - name : Coveralls GitHub Action
32
+ uses :
coverallsapp/[email protected]
33
+ with :
34
+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 3
3
4
4
[ ![ NPM Version] [ npm-image ]] [ npm-url ]
5
5
[ ![ Downloads Stats] [ npm-downloads ]] [ npm-url ]
6
+ [ ![ Coverage Status] [ coveralls-image ]] ( coveralls-url )
6
7
7
8
## What's it all about?
8
9
SQL Highlight is a small package that highlights SQL queries. It can output to
@@ -119,4 +120,6 @@ very little similarity with the original repo.
119
120
120
121
[ npm-image ] : https://img.shields.io/npm/v/sql-highlight.svg
121
122
[ npm-url ] : https://npmjs.org/package/sql-highlight
122
- [ npm-downloads ] : https://img.shields.io/npm/dm/sql-highlight.svg
123
+ [ npm-downloads ] : https://img.shields.io/npm/dm/sql-highlight.svg
124
+ [ coveralls-image ] : https://coveralls.io/repos/github/scriptcoded/sql-highlight/badge.svg
125
+ [ coveralls-url ] : https://coveralls.io/github/scriptcoded/sql-highlight
Original file line number Diff line number Diff line change 10
10
"scripts" : {
11
11
"pretest" : " npm run lint" ,
12
12
"test" : " jest" ,
13
+ "test:coverage" : " jest --coverage" ,
13
14
"lint" : " eslint ."
14
15
},
15
16
"keywords" : [
You can’t perform that action at this time.
0 commit comments