feat: add tx sponsor service and propagate sponsor balance in txpool #535
Workflow file for this run
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
| # Runs unit tests. | |
| name: unit | |
| on: | |
| pull_request: | |
| merge_group: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test | |
| env: | |
| RUST_BACKTRACE: 1 | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - uses: taiki-e/install-action@nextest | |
| - name: Run tests | |
| run: | | |
| cargo nextest run \ | |
| --locked \ | |
| --workspace \ | |
| -E "(kind(lib) | kind(bin) | kind(proc-macro))" \ | |
| --no-tests=warn | |
| client-test: | |
| name: client unit tests | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| working-directory: clients | |
| run: npm ci | |
| - name: Run unit tests | |
| working-directory: clients | |
| run: npm test | |
| doc: | |
| name: doc tests | |
| env: | |
| RUST_BACKTRACE: 1 | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Run doctests | |
| run: cargo test --doc --workspace | |
| unit-success: | |
| name: unit success | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: [test, client-test] | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |