Skip to content

PR / feat: wallet_getCallsStatus #1161

PR / feat: wallet_getCallsStatus

PR / feat: wallet_getCallsStatus #1161

Workflow file for this run

name: ⚡ Pull-Request
run-name: 'PR / ${{ github.event.pull_request.title }}'
on:
pull_request:
types:
- opened # A pull request was created.
- reopened # A closed pull request was reopened.
- edited # A pull request's title, body, or labels are edited.
- synchronize # A pull request's branch was synchronized with its base branch.
- unlocked # Conversation on a pull request was unlocked.
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
issues: read
pull-requests: write
jobs:
check_pr:
name: Check PR
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- name: Check PR Title
uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
paths-filter:
name: Paths Filter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: WalletConnect/actions/github/paths-filter/@2.2.1
id: filter
outputs:
infra: ${{ steps.filter.outputs.infra }}
app: ${{ steps.filter.outputs.app }}
ci:
name: CI
needs: [ paths-filter ]
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
check-app: ${{ needs.paths-filter.outputs.app == 'true' }}
check-infra: ${{ needs.paths-filter.outputs.infra == 'true' }}
check-udeps: false
rust-toolchain: stable
rust-test-args: --features=full,test-localhost --lib --bins
test_bundler:
name: Test with mock bundler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- run: rustup update stable && rustup default stable
- run: docker compose -p mock-bundler -f docker-compose.mock-bundler.yaml up -d # run this first since container startup takes foooorrrrrreeeeeeever
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: WalletConnectBot
password: ${{ secrets.PRIVATE_GHCR_TOKEN_WCF }}
- run: docker pull ghcr.io/walletconnectfoundation/irn-node:sha-baef4e8
- run: docker tag ghcr.io/walletconnectfoundation/irn-node:sha-baef4e8 irn:master
- run: cd irn && docker compose up -d
- run: docker compose up -d redis postgres
- run: cargo build --tests --features=test-mock-bundler # pre-build to parallelize container startup
- run: while ! curl localhost:8545/health; do sleep 1; done # Anvil
- run: while ! curl localhost:4337/health; do sleep 1; done # Mock Bundler
- run: while ! curl localhost:3000/ping; do sleep 1; done # Mock Paymaster
- run: cargo test --features=test-mock-bundler --lib --bins
env:
RPC_PROXY_POSTGRES_URI: "postgres://postgres@localhost/postgres"
RPC_PROXY_PROVIDER_INFURA_PROJECT_ID: ""
RPC_PROXY_PROVIDER_POKT_PROJECT_ID: ""
RPC_PROXY_PROVIDER_QUICKNODE_API_TOKENS: ""
RPC_PROXY_PROVIDER_PIMLICO_API_KEY: ""
RPC_PROXY_PROVIDER_SOLSCAN_API_V1_TOKEN: ""
RPC_PROXY_PROVIDER_SOLSCAN_API_V2_TOKEN: ""
- run: docker logs mock-bundler-anvil-1
if: failure()
- run: docker logs mock-bundler-alto-1
if: failure()
- run: docker logs mock-bundler-mock-paymaster-1
if: failure()
- run: docker logs blockchain-api-postgres-1
if: failure()
- run: docker logs blockchain-api-redis-1
if: failure()
- run: docker logs irn-node-1
if: failure()
- run: docker logs irn-node-2
if: failure()
- run: docker logs irn-node-3
if: failure()
merge_check:
name: Merge Check
needs: [ check_pr, ci ]
if: ${{ always() && !cancelled() && !failure() }}
runs-on: ubuntu-latest
steps:
- run: echo "CI is successful"