File tree Expand file tree Collapse file tree 4 files changed +2531
-312
lines changed
Expand file tree Collapse file tree 4 files changed +2531
-312
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,22 @@ jobs:
1111 build :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
15- - uses : actions/setup-node@v3
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
1616 with :
1717 node-version : 20
18+ cache : " npm"
1819 - run : npm install --ignore-scripts --no-audit
1920 - run : npm test
2021
2122 publish-npm :
2223 needs : build
2324 runs-on : ubuntu-latest
2425 steps :
25- - uses : actions/checkout@v3
26- - uses : actions/setup-node@v3
26+ - uses : actions/checkout@v4
27+ - uses : actions/setup-node@v4
2728 with :
29+ cache : " npm"
2830 node-version : 20
2931 registry-url : https://registry.npmjs.org/
3032 - run : npm install --ignore-scripts --no-audit
Original file line number Diff line number Diff line change 1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout code
18- uses : actions/checkout@v3
18+ uses : actions/checkout@v4
1919 - name : Lint JS
20- run : npx --yes oxlint@latest -D perf
20+ run : npx oxlint@latest -D perf
2121
2222 test :
2323 name : Unit tests
3232 - 20
3333
3434 steps :
35- - uses : actions/checkout@v3
35+ - uses : actions/checkout@v4
3636 - name : Use Node.js ${{ matrix.node-version }}
37- uses : actions/setup-node@v3
37+ uses : actions/setup-node@v4
3838 with :
3939 node-version : ${{ matrix.node-version }}
4040 cache : " npm"
@@ -46,14 +46,21 @@ jobs:
4646 runs-on : ubuntu-latest
4747 steps :
4848 - name : Checkout code
49- uses : actions/checkout@v3
49+ uses : actions/checkout@v4
5050 - name : Use Node.js ${{ matrix.node-version }}
51- uses : actions/setup-node@v3
51+ uses : actions/setup-node@v4
5252 with :
5353 node-version : ${{ matrix.node-version }}
5454 cache : " npm"
5555 - run : npm install --ignore-scripts --no-audit --no-fund
5656 - name : Build package
5757 run : npm run build
58+ env :
59+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5860 - name : Lint package
59- run : npx --yes publint
61+ run : npx publint
62+ - run : npx c8 --reporter=lcov npm test
63+ - name : Upload coverage reports to Codecov
64+ uses : codecov/codecov-action@v4.0.1
65+ with :
66+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments