pi-frame-server/.forgejo/workflows/cargo.yml
Champlin, Saji cf77bdf2a5
Some checks failed
cargo_test_bench / Run Benchmarks (push) Has been cancelled
cargo_test_bench / Run Tests (push) Has been cancelled
flip cache/toolchain setup
2024-08-01 10:14:58 -05:00

26 lines
676 B
YAML

name: cargo_test_bench
on: push
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/Swatinem/rust-cache@v2
- uses: https://github.com/dtolnay/rust-toolchain@stable
- run: cargo test --all-features
bench:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: https://github.com/Swatinem/rust-cache@v2
- uses: https://github.com/dtolnay/rust-toolchain@stable
- run: git checkout HEAD~
- run: cargo bench
- run: git checkout master
- run: cargo bench