Merge pull request #160 from firstbatchxyz/erhant/update-workflows-o1 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
# Source files in each member | |
- "compute/src/**" | |
- "p2p/src/**" | |
- "workflows/src/**" | |
# Cargo in each member | |
- "compute/Cargo.toml" | |
- "p2p/Cargo.toml" | |
- "workflows/Cargo.toml" | |
# root-level Cargo | |
- "Cargo.lock" | |
# workflow itself | |
- ".github/workflows/tests.yml" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Run tests | |
run: cargo test --workspace | |
- name: Run linter | |
run: cargo clippy --workspace |