Skip to content

Commit

Permalink
Remove CI_TEST_MODE (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde authored Nov 29, 2024
1 parent 8342386 commit c3f27fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
ci_test_mode: [0, 1]

steps:
- uses: actions/checkout@v4

Expand All @@ -64,4 +60,4 @@ jobs:
toolchain: stable

- name: Run Cargo test
run: CI_TEST_MODE=${{ matrix.ci_test_mode }} cargo test
run: cargo test
11 changes: 4 additions & 7 deletions src/config/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,10 @@ where

Self {
ports: vec![config.rollup.rpc.bind_port],
image: config.docker_image.clone().unwrap_or_else(|| {
let base_img = DEFAULT_CITREA_DOCKER_IMAGE;
match std::env::var("CI_TEST_MODE") {
Ok(v) if v == "1" || v == "true" => format!("{base_img}-ci"),
_ => base_img.to_string(),
}
}),
image: config
.docker_image
.clone()
.unwrap_or(DEFAULT_CITREA_DOCKER_IMAGE.to_string()),
cmd: args,
log_path: config.dir.join("stdout.log"),
volume: VolumeConfig {
Expand Down

0 comments on commit c3f27fc

Please sign in to comment.