fix: wallet UTXO filter, SPV IS lock relay, asset lock DB store #1855
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "v*-dev" | |
| paths: | |
| - "**/*.rs" | |
| - "**/Cargo.toml" | |
| - "Cargo.lock" | |
| - ".cargo/config.toml" | |
| - "tests/backend-e2e/**" | |
| - ".github/workflows/tests.yml" | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - "**/*.rs" | |
| - "**/Cargo.toml" | |
| - "Cargo.lock" | |
| - ".cargo/config.toml" | |
| - "tests/backend-e2e/**" | |
| - ".github/workflows/tests.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test Suite | |
| if: github.event.pull_request.draft != true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache Cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Install Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential pkg-config clang cmake libsqlite3-dev | |
| - name: Install protoc | |
| run: | | |
| curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip | |
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local bin/protoc | |
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local 'include/*' | |
| rm -f protoc-25.2-linux-x86_64.zip | |
| env: | |
| PROTOC: /usr/local/bin/protoc | |
| - name: Run tests | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all-features --workspace | |
| - name: Run doc tests | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --doc --all-features --workspace | |
| # TODO: Re-enable after backend E2E tests are updated for TaskError migration | |
| # - name: Run backend E2E tests | |
| # run: cargo test --test backend-e2e --all-features -- --ignored --nocapture --test-threads=1 | |
| # env: | |
| # E2E_WALLET_MNEMONIC: ${{ secrets.E2E_WALLET_MNEMONIC }} | |
| # - name: Cleanup E2E test wallets | |
| # if: always() | |
| # run: cargo test --test backend-e2e --all-features -- --ignored --nocapture cleanup_only | |
| # env: | |
| # E2E_WALLET_MNEMONIC: ${{ secrets.E2E_WALLET_MNEMONIC }} |