mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
40 lines
785 B
YAML
40 lines
785 B
YAML
name: Test Suite
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- ptp
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y libudev-dev pkg-config cmake
|
|
|
|
- name: Install Rust dependencies
|
|
run: cargo fetch
|
|
|
|
- name: Run all tests
|
|
run: cargo test --release
|
|
|
|
- name: Run PTP integration tests
|
|
run: cargo test ptp_integration_test --release
|
|
|
|
- name: Run library tests
|
|
run: cargo test --lib --release
|