test full features once for napi v2
This commit is contained in:
parent
fc10e2a517
commit
c5cebec812
3 changed files with 7 additions and 13 deletions
3
.github/workflows/napi3.yaml
vendored
3
.github/workflows/napi3.yaml
vendored
|
@ -71,8 +71,7 @@ jobs:
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: |
|
run: |
|
||||||
yarn --cwd ./examples/napi-compat-mode --ignore-engines build-napi3
|
yarn --cwd ./examples/napi-compat-mode --ignore-engines build-napi3
|
||||||
yarn --cwd ./examples/napi --ignore-engines build-napi3
|
yarn --ignore-engines test examples/napi-compat-mode/__test__/**/*.spec.ts
|
||||||
yarn --ignore-engines test
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,6 @@ version = "0.1.0"
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[features]
|
|
||||||
latest = ["napi/napi8"]
|
|
||||||
napi3 = ["napi/napi3"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
napi-derive = { path = "../../crates/macro", features = ["type-def"] }
|
||||||
napi = { path = "../../crates/napi", features = ["full"] }
|
napi = { path = "../../crates/napi", features = ["full"] }
|
||||||
|
|
|
@ -4,12 +4,11 @@
|
||||||
"main": "./index.node",
|
"main": "./index.node",
|
||||||
"types": "./index.d.ts",
|
"types": "./index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node ../../cli/scripts/index.js build --features \"latest\"",
|
"build": "node ../../cli/scripts/index.js build",
|
||||||
"build-napi3": "node ../../cli/scripts/index.js build --features \"napi3\"",
|
"build-aarch64": "node ../../cli/scripts/index.js build --target aarch64-unknown-linux-gnu",
|
||||||
"build-aarch64": "node ../../cli/scripts/index.js build --features \"latest\" --target aarch64-unknown-linux-gnu",
|
"build-armv7": "node ../../cli/scripts/index.js build --target armv7-unknown-linux-gnueabihf",
|
||||||
"build-armv7": "node ../../cli/scripts/index.js build --features \"latest\" --target armv7-unknown-linux-gnueabihf",
|
"build-i686": "node ../../cli/scripts/index.js build --target i686-pc-windows-msvc",
|
||||||
"build-i686": "node ../../cli/scripts/index.js build --features \"latest\" --target i686-pc-windows-msvc",
|
"build-i686-release": "node ../../cli/scripts/index.js build --release --target i686-pc-windows-msvc",
|
||||||
"build-i686-release": "node ../../cli/scripts/index.js build --release --features \"latest\" --target i686-pc-windows-msvc",
|
"build-release": "node ../../cli/scripts/index.js build --release"
|
||||||
"build-release": "node ../../cli/scripts/index.js build --features \"latest\" --release"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue