solution: separate getting tx history and subscribing to new txs #778
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: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
- ci/* | |
- release/* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: On ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ 'windows-latest', 'macos-latest', 'ubuntu-latest' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install system libs (Linux) | |
run: sudo apt install libcurl4 libudev-dev libusb-1.0-0-dev xvfb | |
if: runner.os == 'Linux' | |
# Needed for Electron tests | |
- name: Setup Display (Linux) | |
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
if: runner.os == 'Linux' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build native | |
run: yarn build:native | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test:coverage | |
env: | |
DISPLAY: ':99.0' | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: 'packages/**/coverage/clover.xml' | |
if: runner.os == 'Linux' |