mirror of
https://github.com/serai-dex/serai.git
synced 2024-10-31 17:37:38 +00:00
534f951165
* Consolidate GitHub CI actions, split out Monero build now includes the specified Rust toolchain/components. Added a test dependencies action which grabs Foundry and Monero. Split the Monero v14 job into a matrixed job in its own workflow flow. It's now only run when Monero has changes. * Correct Monero unit/integration tests run timing Additionally tests a feature-less Monero build. Also removes a pointless Monero file, which already should have been removed, causing this workflow to be triggered. * Correct exclusion and paths Updates to FROST should re-run the Monero tests to ensure it didn't introduce API incompatibilities.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Build Dependencies
|
|
uses: ./.github/actions/build-dependencies
|
|
with:
|
|
# Clippy requires nightly for some reason
|
|
rust-toolchain: nightly
|
|
rust-components: clippy
|
|
|
|
- name: Run Clippy
|
|
run: cargo clippy --all-features -- -D warnings -A clippy::type_complexity -A dead_code
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Test Dependencies
|
|
uses: ./.github/actions/test-dependencies
|
|
|
|
- name: Run Tests
|
|
run: cargo test --all-features
|
|
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
# Doesn't grab the cache as it's not needed
|
|
- name: Install rustfmt
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
components: rustfmt
|
|
|
|
- name: Run rustfmt
|
|
run: cargo +nightly fmt -- --check
|