Commit 7203927 Bart Veneman
committed
1 parent 78d277d commit 7203927 Copy full SHA for 7203927
File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Node.js CI
4
+ name : Test
5
5
6
6
on :
7
7
push :
11
11
12
12
jobs :
13
13
lint :
14
- name : Lint JS
14
+ name : Lint
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout code
18
18
uses : actions/checkout@v4
19
+ - name : Use Node.js
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ cache : npm
23
+ - run : npm install --no-fund --no-audit --ignore-scripts
24
+ - run : npm run build
19
25
- name : Lint JS
20
26
run : npx --yes oxlint@latest -D perf
27
+ - name : Check types
28
+ run : npm run check --if-present
29
+ - name : Lint package
30
+ run : npx --yes publint
21
31
22
32
test :
23
33
name : Unit tests
24
34
runs-on : ubuntu-latest
25
-
26
- strategy :
27
- matrix :
28
- node-version :
29
- - 12.20.0
30
- - 14.13.0
31
- - 16
32
- - 18
33
-
34
35
steps :
35
36
- uses : actions/checkout@v4
36
- - name : Use Node.js ${{ matrix.node-version }}
37
+ - name : Use Node.js
37
38
uses : actions/setup-node@v4
38
39
with :
39
- node-version : ${{ matrix.node-version }}
40
40
cache : npm
41
- - run : npm ci
41
+ - run : npm install --no-fund --no-audit --ignore-scripts
42
42
- run : npm run build
43
43
- run : npm test
Original file line number Diff line number Diff line change 14
14
" quality" ,
15
15
" complexity" ,
16
16
" performance" ,
17
- " maintainability"
17
+ " maintainability" ,
18
+ " score"
18
19
],
19
20
"files" : [
20
21
" dist" ,
27
28
"unpkg" : " ./dist/css-code-quality.umd.js" ,
28
29
"exports" : {
29
30
"." : {
31
+ "types" : " ./dist/index.d.ts" ,
30
32
"import" : " ./dist/css-code-quality.modern.js" ,
31
- "require" : " ./dist/css-code-quality.cjs" ,
32
- "types" : " ./dist/index.d.ts"
33
+ "require" : " ./dist/css-code-quality.cjs"
33
34
},
34
35
"./core" : {
35
36
"import" : " ./src/core.js"
You can’t perform that action at this time.
0 commit comments