Skip to content

Commit 82720cd

Browse files
authored
cleanup some CI scripts (#457)
1 parent 86f1736 commit 82720cd

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

.github/workflows/labels.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
1817
cache: "npm"
19-
- run: npm install --ignore-scripts --no-audit
18+
- run: npm install --ignore-scripts --no-audit --no-fund
2019
- run: npm test
2120

2221
publish-npm:
@@ -27,9 +26,8 @@ jobs:
2726
- uses: actions/setup-node@v4
2827
with:
2928
cache: "npm"
30-
node-version: 20
3129
registry-url: https://registry.npmjs.org/
32-
- run: npm install --ignore-scripts --no-audit
30+
- run: npm install --ignore-scripts --no-fund --no-audit
3331
- run: npm run build
3432
- run: npm publish
3533
env:

.github/workflows/test.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ jobs:
3131
- run: npm install --ignore-scripts --no-audit --no-fund
3232
- run: npm test
3333

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+
3450
lint-package:
3551
name: Lint package
3652
runs-on: ubuntu-latest
@@ -48,8 +64,3 @@ jobs:
4864
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4965
- name: Lint package
5066
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 }}

0 commit comments

Comments
 (0)