diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d10c834bc..38a1bc1759 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: needs: build-test-forge-e2e-nextest-archive strategy: matrix: - partition: [ 1, 2, 3, 4, 5, 6, 7, 8 ] + partition: [1, 2, 3, 4, 5, 6, 7, 8] steps: - name: Extract branch name if: github.event_name != 'pull_request' @@ -142,6 +142,8 @@ jobs: cargo test --package forge --features scarb_2_8_3 e2e::features - run: | cargo test --package scarb-api --features scarb_2_8_3 get_starknet_artifacts_path + - run: | + cargo test --package scarb-api --features scarb_2_8_3 test_load_contracts_artifacts test-forge-runner: name: Test Forge Runner diff --git a/crates/scarb-api/src/artifacts.rs b/crates/scarb-api/src/artifacts.rs index 75632b56d2..948d171b66 100644 --- a/crates/scarb-api/src/artifacts.rs +++ b/crates/scarb-api/src/artifacts.rs @@ -61,7 +61,6 @@ impl StarknetArtifactsFiles { } } -// TODO(#2625) add unit tests fn unique_artifacts( artifact_representations: Vec, current_artifacts: &HashMap, @@ -92,3 +91,122 @@ fn compile_artifact_at_path(path: &Utf8Path) -> Result