From efca76a872baf9324c3e767ff5646f43eb3e84b9 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 21 Oct 2024 14:14:03 -0600 Subject: [PATCH] test v2 --- .circleci/config.yml | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8c3bc279..d94f86d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,6 +4,7 @@ workflows: test: jobs: - contract_marketplace + - contract_marketplace_v2 - lint - wasm-build deploy: @@ -37,21 +38,39 @@ jobs: - run: name: Build and run schema generator command: cargo schema --locked - # - run: - # name: Ensure checked-in schemas are up-to-date - # command: | - # CHANGES_IN_REPO=$(git status --porcelain) - # if [[ -n "$CHANGES_IN_REPO" ]]; then - # echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:" - # git status && git --no-pager diff - # exit 1 - # fi + - save_cache: paths: - /usr/local/cargo/registry - target key: cargocache-marketplace-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }} + contract_marketplace_v2: + docker: + - image: rust:1.81.0 + working_directory: ~/project/contracts/stargaze-marketplace-v2 + steps: + - checkout: + path: ~/project + - run: + name: Version information + command: rustc --version; cargo --version; rustup --version + - restore_cache: + keys: + - cargocache-marketplace-v2-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }} + - run: + name: Unit Tests + environment: + RUST_BACKTRACE: 1 + command: cargo unit-test --locked + - run: + name: Build and run schema generator + command: cargo schema --locked + - save_cache: + paths: + - /usr/local/cargo/registry + - target + key: cargocache-marketplace-v2-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }} lint: docker: - image: rust:1.81.0