-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (35 loc) · 1.01 KB
/
jest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@v3
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@v3
with:
node-version: 18.17
cache: 'yarn'
- 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