Merge develop into master #254
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: Test Suite | |
on: | |
pull_request: | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: -D warnings | |
TEST_RUNNER: osmosis-test-tube | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install cargo make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Install stable toolchain | |
run: cargo make install-stable | |
- name: Run unit tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --locked --lib --all-features | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Build osmosis test contract wasm binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --target wasm32-unknown-unknown --lib --release -p osmosis-test-contract | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Build astroport test contract wasm binary | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --target wasm32-unknown-unknown --lib --release -p astroport-test-contract | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Run osmosis integration tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --locked --test osmosis_tests --all-features | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Run astroport integration tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --locked --test astroport_tests --all-features | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Run osmosis property tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --locked --test osmosis_proptests --all-features | |
env: | |
RUST_BACKTRACE: 1 |