Skip to content

cargo update, tighten GH workflows #2190

cargo update, tighten GH workflows

cargo update, tighten GH workflows #2190

Workflow file for this run

name: Tests
permissions: {}
on:
push:
branches:
- develop
- next
paths:
- "common/**"
- "crypto/**"
- "networks/**"
- "message-queue/**"
- "processor/**"
- "coordinator/**"
- "substrate/**"
pull_request:
paths:
- "common/**"
- "crypto/**"
- "networks/**"
- "message-queue/**"
- "processor/**"
- "coordinator/**"
- "substrate/**"
workflow_dispatch:
jobs:
test-infra:
name: Test various pieces of infrastructure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
with:
persist-credentials: false
- name: Test Dependencies
uses: ./.github/actions/test-dependencies
- name: Run Tests
run: |
cargo test --all-features -p serai-message-queue
find ./processor -name "Cargo.toml" | while IFS="\n" read -r manifest; do
cargo test --all-features --manifest-path $manifest
done
find ./coordinator -name "Cargo.toml" | while IFS="\n" read -r manifest; do
cargo test --all-features --manifest-path $manifest
done
cargo test --all-features -p serai-orchestrator
cargo test --all-features -p serai-shim-rpc
cargo test --all-features -p serai-docker-tests
test-substrate:
name: Test `substrate/` crates (except `client/`)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
with:
persist-credentials: false
- name: Build Dependencies
uses: ./.github/actions/build-dependencies
- name: Run Tests
shell: bash
run: |
find ./substrate -name "Cargo.toml" ! -path "*client*" | while IFS="\n" read -r manifest; do
cargo test --all-features --manifest-path $manifest
done
cargo test --all-features -p serai-substrate-tests
test-serai-client:
name: Test `substrate/client` crates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
with:
persist-credentials: false
- name: Build Dependencies
uses: ./.github/actions/build-dependencies
- name: Run Tests
shell: bash
run: |
find ./substrate -name "Cargo.toml" -path "*client*" | while IFS="\n" read -r manifest; do
cargo test --all-features --manifest-path $manifest
done