feat(send): add unified onchain/lightning switch #4407
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: tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
tests: | |
name: Run jest unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Run regtest setup | |
run: cd docker && docker compose up --quiet-pull -d | |
- name: Wait for bitcoind | |
run: | | |
sudo apt install wait-for-it | |
wait-for-it -h 127.0.0.1 -p 43782 -t 60 | |
- name: Wait for electrum server | |
run: wait-for-it -h 127.0.0.1 -p 60001 -t 60 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Configure npm authentication | |
run: | | |
echo "" >> .yarnrc.yml | |
echo "npmScopes:" >> .yarnrc.yml | |
echo " synonymdev:" >> .yarnrc.yml | |
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml | |
- name: Install Node.js dependencies | |
run: yarn install || yarn install | |
- name: Activate enviroment variables | |
run: cp .env.development.template .env | |
- name: Run Tests | |
run: yarn test | |
- name: Dump docker logs on failure | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 |