mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-16 16:42:03 +00:00
Extend the test workflow to also test against Monero v14 (v0.17)
This commit is contained in:
parent
bba93a64c2
commit
33c55b8506
2 changed files with 33 additions and 3 deletions
12
.github/actions/monero/action.yml
vendored
12
.github/actions/monero/action.yml
vendored
|
@ -1,6 +1,12 @@
|
||||||
name: monero-regtest
|
name: monero-regtest
|
||||||
description: Spawns a regtest Monero daemon
|
description: Spawns a regtest Monero daemon
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "Version to download and run"
|
||||||
|
required: false
|
||||||
|
default: v0.18.0.0
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
@ -9,7 +15,7 @@ runs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: monerod
|
path: monerod
|
||||||
key: monerod-${{ runner.os }}-${{ runner.arch }}-v0.18.0.0
|
key: monerod-${{ runner.os }}-${{ runner.arch }}-${{ inputs.version }}
|
||||||
|
|
||||||
- name: Download the Monero Daemon
|
- name: Download the Monero Daemon
|
||||||
if: steps.cache-monerod.outputs.cache-hit != 'true'
|
if: steps.cache-monerod.outputs.cache-hit != 'true'
|
||||||
|
@ -27,11 +33,11 @@ runs:
|
||||||
RUNNER_OS=linux
|
RUNNER_OS=linux
|
||||||
RUNNER_ARCH=x64
|
RUNNER_ARCH=x64
|
||||||
|
|
||||||
FILE=monero-$RUNNER_OS-$RUNNER_ARCH-v0.18.0.0.tar.bz2
|
FILE=monero-$RUNNER_OS-$RUNNER_ARCH-${{ inputs.version }}.tar.bz2
|
||||||
wget https://downloads.getmonero.org/cli/$FILE
|
wget https://downloads.getmonero.org/cli/$FILE
|
||||||
tar -xvf $FILE
|
tar -xvf $FILE
|
||||||
|
|
||||||
mv monero-x86_64-linux-gnu-v0.18.0.0/monerod monerod
|
mv monero-x86_64-linux-gnu-${{ inputs.version }}/monerod monerod
|
||||||
|
|
||||||
- name: Monero Regtest Daemon
|
- name: Monero Regtest Daemon
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
24
.github/workflows/tests.yml
vendored
24
.github/workflows/tests.yml
vendored
|
@ -51,6 +51,30 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
||||||
|
# Test the Monero code against protocol v14 (node v17) as well
|
||||||
|
test-monero14:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: "recursive"
|
||||||
|
|
||||||
|
- name: Build Dependencies
|
||||||
|
uses: ./.github/actions/build-dependencies
|
||||||
|
|
||||||
|
- name: Monero Regtest Daemon
|
||||||
|
uses: ./.github/actions/monero
|
||||||
|
with:
|
||||||
|
version: v0.17.3.2
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: ./.github/actions/cached-rust
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
(cd coins/monero && cargo test --all-features)
|
||||||
|
(cd processor && cargo test --all-features monero)
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue