feat(client): add sendTx api #524
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
| name: E2E Contracts API Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| merge_group: | |
| pull_request: | |
| jobs: | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'yarn' | |
| - run: yarn install --immutable | |
| - run: yarn build | |
| - name: Download executables | |
| run: | | |
| curl -L -O https://github.com/paritytech/substrate-contracts-node/releases/download/v0.42.0/substrate-contracts-node-linux.tar.gz | |
| tar -xzf substrate-contracts-node-linux.tar.gz | |
| mv ./substrate-contracts-node-linux/substrate-contracts-node ./substrate-contracts-node | |
| chmod +x substrate-contracts-node | |
| curl -L -O https://github.com/use-ink/ink-node/releases/download/v0.45.1/ink-node-linux.tar.gz | |
| tar -xzf ink-node-linux.tar.gz | |
| mv ./ink-node-linux/ink-node ./ink-node | |
| chmod +x ink-node | |
| - name: Spawn networks | |
| run: | | |
| export PATH=$(pwd):$PATH | |
| export RUST_BACKTRACE=full | |
| ./ink-node --rpc-port=9955 --state-pruning=archive --blocks-pruning=archive & | |
| ./substrate-contracts-node --dev & | |
| chmod +x ./e2e/contracts/wait-for-port.sh | |
| ./e2e/contracts/wait-for-port.sh 9944 30 & | |
| ./e2e/contracts/wait-for-port.sh 9955 30 | |
| - name: Run tests | |
| run: yarn workspace e2e-contracts run e2e:test |