Skip to content

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

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 #200

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@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1 # we also test without the default `read-url` feature
with:
command: test
args: --no-default-features
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings