Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(graphql): tests for staging variant #19371

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ jobs:
- name: cargo test
run: |
cargo nextest run --profile ci -E '!package(sui-bridge)'
- name: cargo test (sui-graphql staging)
run: |
cargo nextest run --profile ci --features staging -E 'package(sui-graphql-rpc)' -E 'package(sui-graphql-e2e-tests)'
# Ensure there are no uncommitted changes in the repo after running tests
- run: scripts/changed-files.sh
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions crates/sui-graphql-e2e-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ harness = false

[target.'cfg(msim)'.dependencies]
msim.workspace = true

[features]
staging = ["sui-graphql-rpc/staging"]
11 changes: 9 additions & 2 deletions crates/sui-graphql-e2e-tests/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ use sui_transactional_test_runner::{
run_test_impl,
test_adapter::{SuiTestAdapter, PRE_COMPILED},
};
pub const TEST_DIR: &str = "tests";

datatest_stable::harness!(run_test, TEST_DIR, r".*\.(mvir|move)$");
datatest_stable::harness!(
run_test,
"tests",
if cfg!(feature = "staging") {
r"\.move$"
} else {
r"stable/.*\.move$"
}
);

#[cfg_attr(not(msim), tokio::main)]
#[cfg_attr(msim, msim::main)]
Expand Down
3 changes: 3 additions & 0 deletions crates/sui-graphql-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ sui-framework.workspace = true
tower.workspace = true
sui-test-transaction-builder.workspace = true
sui-move-build.workspace = true

[features]
staging = []
Loading
Loading