-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (40 loc) · 1.44 KB
/
ci.yaml
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
name: Tests
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build dependencies
run: |
rustup update stable --no-self-update
rustup default stable
sudo apt update
sudo apt install -y ca-certificates libssl-dev
- name: Compile
run: cargo rustc -- -A warnings
- name: Unit tests
run: RUST_LOG=asmr=debug cargo test
coin-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install coin dependencies
run: |
rustup update stable --no-self-update
rustup default stable
sudo apt-get update
# Electrum dependencies
sudo apt-get install libsecp256k1-0 python3-setuptools python3-cryptography python3-scrypt
- name: Setup Litecoin
run: sudo ./ci/setup-coins/litecoin.sh
- name: Run a Monero Regtest Node
uses: ./.github/actions/monero
- name: Run a Monero Wallet-RPC
uses: ./.github/actions/monero-wallet-rpc
- name: Setup Monero
run: sudo ./ci/setup-coins/monero.sh
- name: Fix permissions
run: sudo chown runner:runner ./config && sudo chmod 777 -R ./config
- name: Run Litecoin-Monero swap tests
run: RUST_BACKTRACE=1 RUST_LOG=asmr=debug cargo test --features test_litecoin_node,test_monero_node -- ltc_and_xmr --nocapture