2022-07-22 16:31:29 +00:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
2023-07-17 05:04:05 +00:00
|
|
|
paths:
|
|
|
|
- "common/**"
|
|
|
|
- "crypto/**"
|
2024-07-18 19:16:45 +00:00
|
|
|
- "networks/**"
|
2023-07-17 05:04:05 +00:00
|
|
|
- "message-queue/**"
|
|
|
|
- "processor/**"
|
|
|
|
- "coordinator/**"
|
|
|
|
- "substrate/**"
|
2023-07-20 23:34:10 +00:00
|
|
|
|
2022-07-22 16:31:29 +00:00
|
|
|
pull_request:
|
2023-07-20 23:34:10 +00:00
|
|
|
paths:
|
|
|
|
- "common/**"
|
|
|
|
- "crypto/**"
|
2024-07-18 19:16:45 +00:00
|
|
|
- "networks/**"
|
2023-07-20 23:34:10 +00:00
|
|
|
- "message-queue/**"
|
|
|
|
- "processor/**"
|
|
|
|
- "coordinator/**"
|
|
|
|
- "substrate/**"
|
|
|
|
|
2022-10-01 03:26:40 +00:00
|
|
|
workflow_dispatch:
|
2022-07-22 16:31:29 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-07-14 17:02:58 +00:00
|
|
|
test-infra:
|
2022-11-17 02:53:35 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-15 18:30:18 +00:00
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
2022-07-22 16:31:29 +00:00
|
|
|
|
2023-10-23 11:25:00 +00:00
|
|
|
- name: Build Dependencies
|
|
|
|
uses: ./.github/actions/build-dependencies
|
2022-07-22 16:31:29 +00:00
|
|
|
|
2023-07-14 17:02:58 +00:00
|
|
|
- name: Run Tests
|
2023-01-20 16:00:18 +00:00
|
|
|
run: |
|
2023-08-14 15:59:23 +00:00
|
|
|
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \
|
2023-07-14 17:02:58 +00:00
|
|
|
-p serai-message-queue \
|
|
|
|
-p serai-processor-messages \
|
|
|
|
-p serai-processor \
|
|
|
|
-p tendermint-machine \
|
|
|
|
-p tributary-chain \
|
2023-11-05 13:39:50 +00:00
|
|
|
-p serai-coordinator \
|
2024-04-19 10:12:33 +00:00
|
|
|
-p serai-orchestrator \
|
2023-11-05 13:39:50 +00:00
|
|
|
-p serai-docker-tests
|
2023-07-14 17:02:58 +00:00
|
|
|
|
|
|
|
test-substrate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-15 18:30:18 +00:00
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
2023-01-20 16:00:18 +00:00
|
|
|
|
2023-10-23 11:25:00 +00:00
|
|
|
- name: Build Dependencies
|
|
|
|
uses: ./.github/actions/build-dependencies
|
2022-07-22 16:31:29 +00:00
|
|
|
|
2023-07-14 17:02:58 +00:00
|
|
|
- name: Run Tests
|
|
|
|
run: |
|
2023-08-14 15:59:23 +00:00
|
|
|
GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \
|
2023-07-14 17:02:58 +00:00
|
|
|
-p serai-primitives \
|
2023-10-19 10:22:21 +00:00
|
|
|
-p serai-coins-primitives \
|
|
|
|
-p serai-coins-pallet \
|
2023-11-05 17:02:34 +00:00
|
|
|
-p serai-dex-pallet \
|
2023-07-14 17:02:58 +00:00
|
|
|
-p serai-validator-sets-primitives \
|
|
|
|
-p serai-validator-sets-pallet \
|
2023-10-23 04:33:38 +00:00
|
|
|
-p serai-in-instructions-primitives \
|
|
|
|
-p serai-in-instructions-pallet \
|
2024-04-19 10:12:33 +00:00
|
|
|
-p serai-signals-primitives \
|
2023-10-23 04:33:38 +00:00
|
|
|
-p serai-signals-pallet \
|
2024-04-19 10:12:33 +00:00
|
|
|
-p serai-abi \
|
2023-07-14 17:02:58 +00:00
|
|
|
-p serai-runtime \
|
|
|
|
-p serai-node
|
|
|
|
|
|
|
|
test-serai-client:
|
2022-07-22 16:31:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-15 18:30:18 +00:00
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
2022-07-22 16:31:29 +00:00
|
|
|
|
2023-10-23 04:33:38 +00:00
|
|
|
- name: Build Dependencies
|
|
|
|
uses: ./.github/actions/build-dependencies
|
2023-07-14 17:02:58 +00:00
|
|
|
|
|
|
|
- name: Run Tests
|
2023-08-14 15:59:23 +00:00
|
|
|
run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p serai-client
|