Skip to content

Commit

Permalink
fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Aug 22, 2023
1 parent 32b35b6 commit aa65195
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ jobs:
`
})
return data.data.id
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -108,6 +110,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -145,6 +148,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml.src
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- &toolchain
name: Install toolchain
Expand Down
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# use `cargo nextest run` if cargo-nextest is installed
cargo_test = SKIP_WASM_BUILD= $(shell which cargo-nextest >/dev/null && echo "cargo nextest run" || echo "cargo test")
cargo_test = $(shell which cargo-nextest >/dev/null && echo "cargo nextest run" || echo "cargo test")

.PHONY: run
run:
Expand Down Expand Up @@ -140,24 +140,24 @@ try-runtime-acala:

.PHONY: test
test: githooks
${cargo_test} --features with-mandala-runtime --all
SKIP_WASM_BUILD= ${cargo_test} --features with-mandala-runtime --all

.PHONY: test-eth
test-eth: githooks test-evm
${cargo_test} -p runtime-common --features with-ethereum-compatibility schedule_call_precompile_should_work
${cargo_test} -p runtime-integration-tests --features with-mandala-runtime --features with-ethereum-compatibility should_not_kill_contract_on_transfer_all
${cargo_test} -p runtime-integration-tests --features with-mandala-runtime --features with-ethereum-compatibility schedule_call_precompile_should_handle_invalid_input
SKIP_WASM_BUILD= ${cargo_test} -p runtime-common --features with-ethereum-compatibility schedule_call_precompile_should_work
SKIP_WASM_BUILD= ${cargo_test} -p runtime-integration-tests --features with-mandala-runtime --features with-ethereum-compatibility should_not_kill_contract_on_transfer_all
SKIP_WASM_BUILD= ${cargo_test} -p runtime-integration-tests --features with-mandala-runtime --features with-ethereum-compatibility schedule_call_precompile_should_handle_invalid_input

.PHONY: test-evm
test-evm: githooks
${cargo_test} --release -p evm-jsontests --features evm-tests
SKIP_WASM_BUILD= ${cargo_test} --release -p evm-jsontests --features evm-tests

.PHONY: test-runtimes
test-runtimes:
${cargo_test} --all --features with-all-runtime --lib
${cargo_test} -p runtime-integration-tests --features=with-mandala-runtime --lib
${cargo_test} -p runtime-integration-tests --features=with-karura-runtime --lib
${cargo_test} -p runtime-integration-tests --features=with-acala-runtime --lib
SKIP_WASM_BUILD= ${cargo_test} --all --features with-all-runtime --lib
SKIP_WASM_BUILD= ${cargo_test} -p runtime-integration-tests --features=with-mandala-runtime --lib
SKIP_WASM_BUILD= ${cargo_test} -p runtime-integration-tests --features=with-karura-runtime --lib
SKIP_WASM_BUILD= ${cargo_test} -p runtime-integration-tests --features=with-acala-runtime --lib

.PHONY: test-e2e
test-e2e:
Expand Down

0 comments on commit aa65195

Please sign in to comment.