-
Notifications
You must be signed in to change notification settings - Fork 24
68 lines (65 loc) · 1.84 KB
/
Copy pathtest.yaml
File metadata and controls
68 lines (65 loc) · 1.84 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
on:
push:
branches:
- master
pull_request:
name: test
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set default toolchain
run: rustup default nightly
- name: Set profile
run: rustup set profile minimal
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Run cargo test
run: make cargo-test
- name: Run wasm-pack test
run: make wasm-test
regtest-test:
name: Run regtest tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Set up Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Set default toolchain
run: rustup default nightly
- name: Set profile
run: rustup set profile minimal
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Start regtest environment
working-directory: regtest
env:
COMPOSE_PROFILES: ci, esplora
run: sh start.sh
- name: Permissions for regtest data
run: sudo chmod -R 777 regtest/boltz
- name: Run cargo regtest tests
run: make cargo-regtest-test
- name: Run WASM regtest tests
run: make wasm-regtest-test
- name: Build bindings
working-directory: bindings
run: make build-debug
- name: Run bindings tests
working-directory: bindings
run: make test