Skip to content

Commit

Permalink
test v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Oct 21, 2024
1 parent d777da2 commit efca76a
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ workflows:
test:
jobs:
- contract_marketplace
- contract_marketplace_v2
- lint
- wasm-build
deploy:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit efca76a

Please sign in to comment.