Skip to content

Commit caf53a7

Browse files
committed
ci: fix test
1 parent 4fd26d4 commit caf53a7

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,6 @@ jobs:
3232
- name: Lint
3333
run: nr lint
3434

35-
typecheck:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v3
39-
40-
- name: Install pnpm
41-
uses: pnpm/action-setup@v2
42-
43-
- name: Set node
44-
uses: actions/setup-node@v3
45-
with:
46-
node-version: 18.x
47-
48-
- name: Setup
49-
run: npm i -g @antfu/ni
50-
51-
- name: Install
52-
run: nci
53-
54-
- name: Typecheck
55-
run: nr typecheck
56-
5735
test:
5836
runs-on: ${{ matrix.os }}
5937

@@ -73,8 +51,7 @@ jobs:
7351
node-version: ${{ matrix.node }}
7452
cache: pnpm
7553
- run: pnpm install
76-
- run: pnpm lint
7754
- run: pnpm build
78-
- run: pnpm test:types
55+
# - run: pnpm test:types
7956
- run: pnpm vitest --coverage && rm -rf coverage/tmp
8057
- uses: codecov/codecov-action@v3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"release": "bumpp && npm publish",
5757
"start": "esno src/index.ts",
5858
"test": "vitest",
59-
"typecheck": "tsc --noEmit",
59+
"test:types": "vitest typecheck",
6060
"prepare": "simple-git-hooks"
6161
},
6262
"peerDependencies": {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"skipLibCheck": true,
1515
"skipDefaultLibCheck": true,
1616
"types": ["node"]
17-
}
17+
},
18+
"include": ["src", "test"]
1819
}

0 commit comments

Comments
 (0)