Add chopsticks workflow #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Run Chopsticks" | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# - name: Cancel previous runs | ||
# uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # v0.11.0 | ||
# with: | ||
# access_token: ${{ github.token }} | ||
- name: Install updates and protobuf-compiler | ||
run: sudo apt update && sudo apt install --assume-yes cmake protobuf-compiler wget curl git python3 make build-essential | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- name: Install nightly toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
target: wasm32-unknown-unknown | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: AcalaNetwork/e2e-tests | ||
path: e2e-tests | ||
run: pwd && ls -ltrh | ||
- name: Test all features | ||
run: cargo test --workspace --release --locked --features=runtime-benchmarks,runtime-metrics,try-runtime | ||
env: | ||
RUSTFLAGS: "-C debug-assertions -D warnings" | ||
- name: Install e2e tests repo | ||
run: yarn --cwd e2e-tests/ && yarn --cwd e2e-tests/ update-env | ||
- name: Run tests | ||
env: | ||
KUSAMA_WASM: "../target/release/wbuild/kusama-runtime/kusama_runtime.compact.compressed.wasm" | ||
POLKADOT_WASM: "../target/release/wbuild/polkadot-runtime/polkadot_runtime.compact.compressed.wasm" | ||
STATEMINE_WASM: "../target/release/wbuild/asset-hub-kusama-runtime/asset_hub_kusama_runtime.compact.compressed.wasm" | ||
STATEMINT_WASM: "../target/release/wbuild/asset-hub-polkadot-runtime/asset_hub_polkadot_runtime.compact.compressed.wasm" | ||
run: find e2e-tests/tests/ -name '*.test.*' | xargs rm -rf && cp -r chopsticks/* e2e-tests/tests/ && yarn --cwd e2e-tests test |