Skip to content

Swap non vault funds #70

Swap non vault funds

Swap non vault funds #70

name: Test Tube (osmosis)
on:
pull_request:
branches:
- main
paths:
- 'smart-contracts/osmosis/contracts/dex-router-osmosis/Cargo.toml'
- 'smart-contracts/osmosis/contracts/dex-router-osmosis/**.rs'
- 'smart-contracts/osmosis/contracts/cl-vault/Cargo.toml'
- 'smart-contracts/osmosis/contracts/cl-vault/**.rs'
- 'smart-contracts/osmosis/contracts/merkle-incentives/Cargo.toml'
- 'smart-contracts/osmosis/contracts/merkle-incentives/**.rs'
- '.github/workflows/dex_router_osmosis.yml'
- '.github/workflows/cl_vault_osmosis.yml'
- '.github/workflows/merkle_incentives_osmosis.yml'
- '.github/workflows/test_tube_osmosis.yml'
push:
branches:
- main
paths:
- 'smart-contracts/osmosis/contracts/dex-router-osmosis/Cargo.toml'
- 'smart-contracts/osmosis/contracts/dex-router-osmosis/**.rs'
- 'smart-contracts/osmosis/contracts/cl-vault/Cargo.toml'
- 'smart-contracts/osmosis/contracts/cl-vault/**.rs'
- 'smart-contracts/osmosis/contracts/merkle-incentives/Cargo.toml'
- 'smart-contracts/osmosis/contracts/merkle-incentives/**.rs'
- '.github/workflows/dex_router_osmosis.yml'
- '.github/workflows/cl_vault_osmosis.yml'
- '.github/workflows/merkle_incentives_osmosis.yml'
- '.github/workflows/test_tube_osmosis.yml'
workflow_dispatch:
jobs:
test-tube:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Restore dependencies
uses: actions/cache/restore@v4
with:
path: |
~/.cargo
~/go
smart-contracts/osmosis/**/target
key: ${{ runner.os }}-cargo-osmosis-$GITHUB_SHA
restore-keys: ${{ runner.os }}-cargo-osmosis
- name: Rust lint
run: cargo clippy --features test-tube --all-targets -- -D warnings --A deprecated
working-directory: smart-contracts/osmosis
- name: Build merkle-incentives
run: cargo test-tube-build
working-directory: smart-contracts/osmosis/contracts/merkle-incentives
- name: Test merkle-incentives
run: cargo test-tube
working-directory: smart-contracts/osmosis/contracts/merkle-incentives
- name: Build dex-router-osmosis
run: cargo test-tube-build
working-directory: smart-contracts/osmosis/contracts/dex-router-osmosis
- name: Test dex-router-osmosis
run: cargo test-tube
working-directory: smart-contracts/osmosis/contracts/dex-router-osmosis
- name: Build cl-vault
run: cargo test-tube-build
working-directory: smart-contracts/osmosis/contracts/cl-vault
- name: Test cl-vault
run: cargo test-tube
working-directory: smart-contracts/osmosis/contracts/cl-vault
- name: Run prop-test
if: github.ref == 'refs/heads/main'
run: cargo prop-test
env:
PROPTEST_CASES: 10
working-directory: smart-contracts/osmosis/contracts/cl-vault