Skip to content

[Astra] rename cleanup : make sure the tests are passing[Rust unit and integration tests] #22

[Astra] rename cleanup : make sure the tests are passing[Rust unit and integration tests]

[Astra] rename cleanup : make sure the tests are passing[Rust unit and integration tests] #22

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Build
env:
IS_GITHUB_ACTION: true
run: mkdir res && cd astra && cargo build --release --target wasm32-unknown-unknown
- name: Build
env:
IS_GITHUB_ACTION: true
run: cargo +stable build --workspace --target wasm32-unknown-unknown --release
- name: Wasm copy
run: |
cp target/wasm32-unknown-unknown/release/astra.wasm res
cp target/wasm32-unknown-unknown/release/astra_factory.wasm res
cp target/wasm32-unknown-unknown/release/astra_staking.wasm res
cp target/wasm32-unknown-unknown/release/test_token.wasm res
- name: Run Cargo tests
env:
IS_GITHUB_ACTION: true
run: cargo test --workspace -- --nocapture
- name: Run Ava tests
env:
IS_GITHUB_ACTION: true
run: cd astra && sh test.sh