2022-07-29 14:36:09 +00:00
|
|
|
name: test-dependencies
|
|
|
|
description: Installs test dependencies for Serai
|
|
|
|
|
|
|
|
inputs:
|
2023-01-01 09:09:10 +00:00
|
|
|
github-token:
|
|
|
|
description: "GitHub token to install Protobuf with"
|
|
|
|
require: true
|
|
|
|
default:
|
|
|
|
|
2022-07-29 14:36:09 +00:00
|
|
|
monero-version:
|
|
|
|
description: "Monero version to download and run as a regtest node"
|
|
|
|
required: false
|
|
|
|
default: v0.18.0.0
|
|
|
|
|
2023-01-31 12:48:14 +00:00
|
|
|
bitcoin-version:
|
|
|
|
description: "Bitcoin version to download and run as a regtest node"
|
|
|
|
required: false
|
|
|
|
default: 24.0.1
|
|
|
|
|
2023-01-20 16:00:18 +00:00
|
|
|
serai:
|
|
|
|
description: "Run a Serai development node in the background"
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
|
2022-07-29 14:36:09 +00:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Install Build Dependencies
|
|
|
|
uses: ./.github/actions/build-dependencies
|
2023-01-01 09:09:10 +00:00
|
|
|
with:
|
|
|
|
github-token: ${{ inputs.github-token }}
|
2022-07-29 14:36:09 +00:00
|
|
|
|
|
|
|
- name: Install Foundry
|
|
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
|
|
with:
|
|
|
|
version: nightly
|
|
|
|
|
|
|
|
- name: Run a Monero Regtest Node
|
|
|
|
uses: ./.github/actions/monero
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.monero-version }}
|
2023-01-16 21:17:54 +00:00
|
|
|
|
2023-01-31 12:48:14 +00:00
|
|
|
- name: Run a Bitcoin Regtest Node
|
|
|
|
uses: ./.github/actions/bitcoin
|
|
|
|
with:
|
|
|
|
version: ${{ inputs.bitcoin-version }}
|
|
|
|
|
2023-01-16 21:17:54 +00:00
|
|
|
- name: Run a Monero Wallet-RPC
|
|
|
|
uses: ./.github/actions/monero-wallet-rpc
|
2023-01-20 16:00:18 +00:00
|
|
|
|
|
|
|
- name: Run a Serai Development Node
|
|
|
|
if: ${{ inputs.serai }}
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd substrate/node
|
|
|
|
cargo build
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
./target/debug/serai-node --dev &
|