ethp 0.1.0

Macros for evaluating common Ethereum and blockchain functions at compile time.
Documentation
name: lint

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: "-D warnings"

jobs:
  cargo-fmt:
    name: cargo-fmt
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: dtolnay/rust-toolchain@nightly
      with:
        components: rustfmt
    - name: Check formatting with cargo fmt
      run: cargo +nightly fmt --all --verbose --check

  cargo-clippy:
    name: cargo-clippy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Get latest version of stable Rust
      run: rustup update stable
    - name: Check clippy
      run: cargo clippy --all-features