From e06118ba4b037c0251882714995a3c1d787d595e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Zieli=C5=84ski?= Date: Tue, 27 Jun 2023 18:24:02 +0200 Subject: [PATCH] Testing on both stable and future Odra. (#58) --- .github/workflows/ci-cargo-odra.yml | 3 ++- justfile | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-cargo-odra.yml b/.github/workflows/ci-cargo-odra.yml index a3ee09c..63b18de 100644 --- a/.github/workflows/ci-cargo-odra.yml +++ b/.github/workflows/ci-cargo-odra.yml @@ -32,4 +32,5 @@ jobs: - run: just prepare - run: just check-lint - run: just install - - run: just test-project-generation + - run: just test-project-generation-on-stable-odra + - run: just test-project-generation-on-future-odra diff --git a/justfile b/justfile index b76a513..51c8128 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,5 @@ +DEVELOPMENT_ODRA_BRANCH := "release/0.5.0" + default: just --list @@ -8,9 +10,17 @@ prepare: rustup target add wasm32-unknown-unknown sudo apt install wabt -test-project-generation: +test-project-generation-on-stable-odra: + rm -rf testproject + cargo odra new --name testproject + just test-testproject + +test-project-generation-on-future-odra: rm -rf testproject - cargo odra new --name testproject --source release/0.4.0 + cargo odra new --name testproject --source {{DEVELOPMENT_ODRA_BRANCH}} + just test-testproject + +test-testproject: cd testproject && cargo odra generate -c plascoin cd testproject && cargo odra test cd testproject && cargo odra test -b casper