2023-07-03 15:16:22 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
name: Tests
|
|
|
|
|
|
|
|
permissions: write-all
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy, rust-src
|
|
|
|
- name: Cache
|
|
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Check formatting
|
|
|
|
run: cargo fmt --check
|
2023-07-13 11:36:38 +01:00
|
|
|
- name: Clippy
|
2023-11-11 10:43:32 +00:00
|
|
|
run: cargo clippy --features prost,serde,docs,math --tests -- -D warnings
|
2023-07-03 15:16:22 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --all-features
|