fix: Don't swap if offer_amount is zero #9
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: Integration Test Suite | |
on: | |
pull_request: | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
test: | |
name: Integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.65.0 | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Compile contract for Osmosis | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --locked --target wasm32-unknown-unknown --release --features osmosis | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Run Osmosis integration tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --locked --test osmosis_tests --features osmosis | |
env: | |
RUST_BACKTRACE: 1 |