Skip to content

Commit e95bef9

Browse files
committed
fix: ci
1 parent e6a7f02 commit e95bef9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/y-octo-node.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/upload-artifact@v3
5353
with:
5454
name: y-octo.${{ matrix.settings.target }}.node
55-
path: ./y-octo-node/*.node
55+
path: ./y-octo-node/dist
5656
if-no-files-found: error
5757

5858
test-node:
@@ -104,7 +104,7 @@ jobs:
104104
uses: actions/download-artifact@v3
105105
with:
106106
name: y-octo.${{ matrix.settings.target }}.node
107-
path: ./y-octo-node
107+
path: ./y-octo-node/dist
108108
- name: Run node binding tests
109109
run: ls -lah & ls -lah tests
110110
working-directory: y-octo-node

y-octo-node/native/src/doc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ impl YDoc {
120120
self.doc.apply_update_from_binary_v1(update)?;
121121

122122
// if update received from remote and current client state has been changed
123-
// that means another client using same client id, we need to change the client id to avoid conflict
123+
// that means another client using same client id, we need to change the client
124+
// id to avoid conflict
124125
if self.doc.get_state_vector().get(&client) != before_current_state {
125126
self.doc.renew_client();
126127
}

y-octo-node/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"artifacts": "napi artifacts",
4141
"build": "yarn build:binding && yarn build:js",
4242
"build:debug": "yarn build:binding:debug && yarn build:js",
43-
"build:js": "pkgroll",
43+
"build:js": "pkgroll -- -",
4444
"build:binding": "yarn build:binding:debug --release",
4545
"build:binding:debug": "napi build --platform --no-const-enum --manifest-path native/Cargo.toml --dts ../src/yocto.d.ts --js ../src/yocto.js -o ./dist",
4646
"universal": "napi universal",
4747
"test": "ava --concurrency 1 --serial --timeout 5s",
48-
"test:watch": "yarn exec tsx ./scripts/run-test.mts all --watch",
49-
"test:coverage": "NODE_OPTIONS=\"--import tsx\" c8 node ./scripts/run-test.mts all",
48+
"test:watch": "yarn test --watch",
49+
"test:coverage": "c8 ava --concurrency 1 --serial",
5050
"version": "napi version"
5151
},
5252
"version": "0.0.1",

0 commit comments

Comments
 (0)