Skip to content

Allow Calendar, Shape, Route, and other enums to be clonable, move serde bounds, upgrade from deprecated time function #202

Allow Calendar, Shape, Route, and other enums to be clonable, move serde bounds, upgrade from deprecated time function

Allow Calendar, Shape, Route, and other enums to be clonable, move serde bounds, upgrade from deprecated time function #202

Workflow file for this run

on: [push, pull_request]
name: Tests and linting
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@stable
- run: test --all-features
- run: cargo test --no-default-features
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy -- -D warnings