File tree Expand file tree Collapse file tree 3 files changed +18
-26
lines changed Expand file tree Collapse file tree 3 files changed +18
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v4
15
15
- uses : actions/setup-node@v4
16
16
with :
17
- node-version : 20
18
17
cache : " npm"
19
- - run : npm install --ignore-scripts --no-audit
18
+ - run : npm install --ignore-scripts --no-audit --no-fund
20
19
- run : npm test
21
20
22
21
publish-npm :
27
26
- uses : actions/setup-node@v4
28
27
with :
29
28
cache : " npm"
30
- node-version : 20
31
29
registry-url : https://registry.npmjs.org/
32
- - run : npm install --ignore-scripts --no-audit
30
+ - run : npm install --ignore-scripts --no-fund --no- audit
33
31
- run : npm run build
34
32
- run : npm publish
35
33
env :
Original file line number Diff line number Diff line change 31
31
- run : npm install --ignore-scripts --no-audit --no-fund
32
32
- run : npm test
33
33
34
+ code-coverage :
35
+ name : Code coverage
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - name : Use Node.js
40
+ uses : actions/setup-node@v4
41
+ with :
42
+ cache : " npm"
43
+ - run : npm install --ignore-scripts --no-audit --no-fund
44
+ - run : npx c8 --reporter=lcov npm test
45
+ - name : Upload coverage reports to Codecov
46
+ uses : codecov/codecov-action@v4
47
+ with :
48
+ token : ${{ secrets.CODECOV_TOKEN }}
49
+
34
50
lint-package :
35
51
name : Lint package
36
52
runs-on : ubuntu-latest
48
64
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
49
65
- name : Lint package
50
66
run : npx publint
51
- - run : npx c8 --reporter=lcov npm test
52
- - name : Upload coverage reports to Codecov
53
- uses : codecov/codecov-action@v4
54
- with :
55
- token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments