mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
add feature and fix ci (#9800)
This commit is contained in:
committed by
GitHub
parent
cddafd523e
commit
0930948580
@@ -516,7 +516,7 @@ test-wasmer-sandbox:
|
|||||||
variables:
|
variables:
|
||||||
<<: *default-vars
|
<<: *default-vars
|
||||||
script:
|
script:
|
||||||
- time cargo test --release --features runtime-benchmarks,wasmer-sandbox
|
- time cargo test --release --features runtime-benchmarks,wasmer-sandbox,disable-ui-tests
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
cargo-check-macos:
|
cargo-check-macos:
|
||||||
|
|||||||
@@ -48,3 +48,5 @@ try-runtime = ["frame-support/try-runtime"]
|
|||||||
# WARNING: CI only execute pallet test with this feature,
|
# WARNING: CI only execute pallet test with this feature,
|
||||||
# if the feature intended to be used outside, CI and this message need to be updated.
|
# if the feature intended to be used outside, CI and this message need to be updated.
|
||||||
conditional-storage = []
|
conditional-storage = []
|
||||||
|
# Disable ui tests
|
||||||
|
disable-ui-tests = []
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
#[rustversion::attr(not(stable), ignore)]
|
#[rustversion::attr(not(stable), ignore)]
|
||||||
|
#[cfg(not(feature = "disable-ui-tests"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn ui() {
|
fn ui() {
|
||||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#[rustversion::attr(not(stable), ignore)]
|
#[rustversion::attr(not(stable), ignore)]
|
||||||
|
#[cfg(not(feature = "disable-ui-tests"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn decl_module_ui() {
|
fn decl_module_ui() {
|
||||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#[rustversion::attr(not(stable), ignore)]
|
#[rustversion::attr(not(stable), ignore)]
|
||||||
|
#[cfg(not(feature = "disable-ui-tests"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn decl_storage_ui() {
|
fn decl_storage_ui() {
|
||||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#[rustversion::attr(not(stable), ignore)]
|
#[rustversion::attr(not(stable), ignore)]
|
||||||
|
#[cfg(not(feature = "disable-ui-tests"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn derive_no_bound_ui() {
|
fn derive_no_bound_ui() {
|
||||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#[rustversion::attr(not(stable), ignore)]
|
#[rustversion::attr(not(stable), ignore)]
|
||||||
|
#[cfg(not(feature = "disable-ui-tests"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn pallet_ui() {
|
fn pallet_ui() {
|
||||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||||
|
|||||||
Reference in New Issue
Block a user