Skip to content

Commit 733d6ff

Browse files
authored
Split CI jobs (#1052)
1 parent 3b11ac8 commit 733d6ff

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm install
25-
- run: npm test
25+
- run: npm run lint
26+
- run: npm run type
27+
- run: npm run unit
2628
- uses: codecov/codecov-action@v4
2729
with:
2830
token: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"node": ">=18"
2121
},
2222
"scripts": {
23-
"test": "xo && c8 ava && tsd && tsc && npx --yes tsd@0.29.0 && npx --yes --package typescript@5.1 tsc"
23+
"test": "npm run lint && npm run unit && npm run type",
24+
"lint": "xo",
25+
"unit": "c8 ava",
26+
"type": "tsd && tsc && npx --yes tsd@0.29.0 && npx --yes --package typescript@5.1 tsc"
2427
},
2528
"files": [
2629
"index.js",

0 commit comments

Comments
 (0)