Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace makefile with sc-meta #39

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
default: 'nightly'
required: false
type: string
sc-meta-hash-git:
description: 'multiversx-sc-meta git commit hash'
default: ''
required: false
type: string
sc-meta-version:
description: 'multiversx-sc-meta version'
default: ''
Expand Down Expand Up @@ -181,7 +186,13 @@ jobs:
cargo install wasm-opt
cargo install twiggy

if [[ "${{ inputs.path-to-sc-meta }}" ]];
if [[ -n "${{ inputs.sc-meta-hash-git }}" ]];
then
git clone https://github.com/multiversx/mx-sdk-rs.git sdk
cd sdk/ && git checkout ${{ inputs.sc-meta-hash-git }}
cargo install --path $(pwd)/framework/meta
cd .. && rm -rf sdk
elif [[ "${{ inputs.path-to-sc-meta }}" ]];
then
cargo install --path ${{ inputs.path-to-sc-meta }}
elif [[ -z "${{ inputs.sc-meta-version }}" ]];
Expand All @@ -198,10 +209,21 @@ jobs:
RUSTFLAGS: ""
run: sc-meta all build --no-imports --target-dir $(pwd)/target --path .

- name: Pull latest chain simulator docker image
env:
RUSTFLAGS: ""
run: sc-meta cs install

- name: Run the interactor tests
continue-on-error: false
env:
RUSTFLAGS: ""
run: sc-meta cs start & sc-meta test -c

- name: Stop the chain simulator
env:
RUSTFLAGS: ""
run: make chain-simulator
run: sc-meta cs stop

test_coverage:
name: Test Coverage
Expand Down