Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit 17a8feb

Browse files
committed
ci: fix test hangs or times out
1 parent 6eef783 commit 17a8feb

File tree

3 files changed

+210
-19
lines changed

3 files changed

+210
-19
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,7 @@ env:
33
DEBUG: napi:*
44
APP_NAME: hexo-util
55
MACOSX_DEPLOYMENT_TARGET: '10.13'
6-
'on':
7-
push:
8-
branches:
9-
- main
10-
tags-ignore:
11-
- '**'
12-
paths-ignore:
13-
- '**/*.md'
14-
- LICENSE
15-
- '**/*.gitignore'
16-
- .editorconfig
17-
- docs/**
6+
'on': push
187

198
jobs:
209
build:

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"version": "napi version"
6363
},
6464
"devDependencies": {
65+
"@ava/typescript": "^3.0.1",
6566
"@napi-rs/cli": "^2.10.3",
6667
"@swc-node/register": "^1.5.1",
6768
"@types/hexo-util": "^0.6.4",
@@ -81,6 +82,7 @@
8182
"prettier": "^2.7.1",
8283
"string-strip-html": "8",
8384
"striptags": "^3.2.0",
85+
"ts-node": "^10.9.1",
8486
"typescript": "^4.7.4"
8587
},
8688
"dependencies": {
@@ -98,7 +100,7 @@
98100
},
99101
"ava": {
100102
"require": [
101-
"@swc-node/register"
103+
"ts-node/register/transpile-only"
102104
],
103105
"extensions": [
104106
"ts"

0 commit comments

Comments
 (0)