mail-auth 0.9.0

DKIM, ARC, SPF and DMARC library for Rust
Documentation
name: "CI"

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

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: cargo fmt -- --check
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check
      - run: rustup component add clippy
      - uses: actions-rs/clippy-check@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          args: --all-features
      - name: Build
        run: cargo build --verbose
      - name: Run tests (rust-crypto)
        run: cargo test --verbose --no-default-features --features rust-crypto
      - name: Run tests (ring)
        run: cargo test --verbose