From c5cebec8125045c1fda488700fef112314b9f89c Mon Sep 17 00:00:00 2001 From: forehalo Date: Mon, 25 Oct 2021 23:16:18 +0800 Subject: [PATCH] test full features once for napi v2 --- .github/workflows/napi3.yaml | 3 +-- examples/napi/Cargo.toml | 4 ---- examples/napi/package.json | 13 ++++++------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/napi3.yaml b/.github/workflows/napi3.yaml index 863c99c0..de05604b 100644 --- a/.github/workflows/napi3.yaml +++ b/.github/workflows/napi3.yaml @@ -71,8 +71,7 @@ jobs: - name: Unit tests run: | yarn --cwd ./examples/napi-compat-mode --ignore-engines build-napi3 - yarn --cwd ./examples/napi --ignore-engines build-napi3 - yarn --ignore-engines test + yarn --ignore-engines test examples/napi-compat-mode/__test__/**/*.spec.ts env: RUST_BACKTRACE: 1 diff --git a/examples/napi/Cargo.toml b/examples/napi/Cargo.toml index 1a4f8478..a4a78bf9 100644 --- a/examples/napi/Cargo.toml +++ b/examples/napi/Cargo.toml @@ -7,10 +7,6 @@ version = "0.1.0" [lib] crate-type = ["cdylib"] -[features] -latest = ["napi/napi8"] -napi3 = ["napi/napi3"] - [dependencies] napi-derive = { path = "../../crates/macro", features = ["type-def"] } napi = { path = "../../crates/napi", features = ["full"] } diff --git a/examples/napi/package.json b/examples/napi/package.json index a1f3924c..2c0dc747 100644 --- a/examples/napi/package.json +++ b/examples/napi/package.json @@ -4,12 +4,11 @@ "main": "./index.node", "types": "./index.d.ts", "scripts": { - "build": "node ../../cli/scripts/index.js build --features \"latest\"", - "build-napi3": "node ../../cli/scripts/index.js build --features \"napi3\"", - "build-aarch64": "node ../../cli/scripts/index.js build --features \"latest\" --target aarch64-unknown-linux-gnu", - "build-armv7": "node ../../cli/scripts/index.js build --features \"latest\" --target armv7-unknown-linux-gnueabihf", - "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 --features \"latest\" --target i686-pc-windows-msvc", - "build-release": "node ../../cli/scripts/index.js build --features \"latest\" --release" + "build": "node ../../cli/scripts/index.js build", + "build-aarch64": "node ../../cli/scripts/index.js build --target aarch64-unknown-linux-gnu", + "build-armv7": "node ../../cli/scripts/index.js build --target armv7-unknown-linux-gnueabihf", + "build-i686": "node ../../cli/scripts/index.js build --target i686-pc-windows-msvc", + "build-i686-release": "node ../../cli/scripts/index.js build --release --target i686-pc-windows-msvc", + "build-release": "node ../../cli/scripts/index.js build --release" } }