WIP: Trigger cl-vault test-tube on dex-router-osmosis changes #4
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: Test cl vault | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'smart-contracts/contracts/cl-vault/Cargo.toml' | |
- 'smart-contracts/contracts/cl-vault/**.rs' | |
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' | |
- 'smart-contracts/contracts/dex-router-osmosis/**.rs' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
unit-test: | |
uses: ./.github/workflows/rust_basic.yml | |
with: | |
contract: 'cl-vault' | |
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@v4 | |
with: | |
path: | | |
~/.cargo | |
~/go | |
**/target | |
key: ${{ runner.os }}-cargo-$${{ hashFiles('smart-contracts/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo | |
- name: Build test-tube tests | |
run: cargo test-tube-build | |
working-directory: smart-contracts/contracts/dex-router-osmosis | |
- name: Build test-tube tests | |
run: cargo test-tube-build | |
working-directory: smart-contracts/contracts/cl-vault | |
- name: Run test-tube tests | |
run: cargo test-tube | |
env: | |
PROPTEST_CASES: 10 | |
working-directory: smart-contracts/contracts/cl-vault |