fixnum 0.9.2

Fixed-point numbers with explicit rounding
Documentation
name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: -Dwarnings
  RUST_BACKTRACE: 1

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: rustc --version
    - run: cargo build --all-targets --all-features

  rustfmt:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: rustup component add rustfmt
    - run: cargo fmt --version
    - run: cargo fmt -- --check

  clippy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: rustup component add clippy
    - run: cargo clippy --version
    - run: cargo clippy --features i64
    - run: cargo clippy --all-targets --features i64
    - run: cargo clippy --all-targets --all-features

  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: rustc --version
    - run: cargo test --features i64
    - run: cargo test --features i128
    - run: cargo test --no-default-features --lib --features i64
    - run: cargo test --no-default-features --lib --features i128
    - run: cargo test --no-default-features --lib --features std,i64
    - run: cargo test --no-default-features --lib --features serde,i64
    - run: cargo test --no-default-features --lib --features i64,parity
    - run: cargo test --no-default-features --lib --features i128,parity
    - run: cargo test --all-features

  run-example:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: cargo run --example usage --features i64